become_java! doesn't add Ruby class methods as statics on the resulting Java
class
----------------------------------------------------------------------------------
Key: JRUBY-5127
URL: http://jira.codehaus.org/browse/JRUBY-5127
Project: JRuby
Issue Type: Improvement
Reporter: bob mcwhirter
Assignee: Thomas E Enebo
This code:
require 'java'
require 'jruby/core_ext'
class Foo
def self.foo
"foo"
end
def bar
"bar"
end
end
Foo.become_java!('.')
=====
Produces this .class, missing the static method Foo.foo()
public class ruby.Foo extends org.jruby.RubyObject{
private static org.jruby.Ruby ruby;
private static org.jruby.RubyClass rubyClass;
public static void clinit(org.jruby.Ruby, org.jruby.RubyClass);
public ruby.Foo(org.jruby.Ruby, org.jruby.RubyClass);
public ruby.Foo();
public java.lang.Object toJava(java.lang.Class);
public org.jruby.runtime.builtin.IRubyObject bar();
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email