Skip to content

Instantly share code, notes, and snippets.

@headius
Created November 27, 2008 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/29788 to your computer and use it in GitHub Desktop.
Save headius/29788 to your computer and use it in GitHub Desktop.
diff --git a/src/org/jruby/java/proxies/JavaInterfaceTemplate.java b/src/org/jruby/java/proxies/JavaInterfaceTemplate.java
index 872f52d..bc6ab52 100644
--- a/src/org/jruby/java/proxies/JavaInterfaceTemplate.java
+++ b/src/org/jruby/java/proxies/JavaInterfaceTemplate.java
@@ -239,7 +239,7 @@ public class JavaInterfaceTemplate {
// we've already done the above priming logic, just add another interface
// to the list of intentions unless we're past the point of no return or
// already intend to implement the given interface
- if (!(javaInterfaces.isFrozen() || ((RubyArray)javaInterfaces).includes(context, javaClass))) {
+ if (!(javaInterfaces.isFrozen() || ((RubyArray)javaInterfaces).includes(context, javaClassObj))) {
((RubyArray)javaInterfaces).append(javaClassObj);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment