@java_interfaces not initialized

Hi jruby experts,

when I implement a java interface in a jruby class, there is a annoying
warning
warning: instance variable @java_interfaces not initialized
I wonder if I do something wrong?

This line shows the warning:

$ jruby -v -w -e “require ‘java’;class Foo;include
java.lang.Runnable;def run;end;end”
jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-01-29 cc9df4d) (Java
HotSpot™ 64-Bit Server VM 1.6.0_17) [x86_64-java]
-e:1 warning: instance variable @java_interfaces not initialized

Many TIA,
– Jan H.

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Fri, Feb 5, 2010 at 2:17 AM, Jan H. [email protected]
wrote:

-e:1 warning: instance variable @java_interfaces not initialized
You didn’t do anything wrong. It’s just a minor bug in the internals
of JRuby that accesses an instance variable using a method which
produces the warning. I have a change I’m testing that will suppress
it.

Thanks for the report,
/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email