become_java! only works on the first subclass of a deep class hierarchy
-----------------------------------------------------------------------

                 Key: JRUBY-5483
                 URL: http://jira.codehaus.org/browse/JRUBY-5483
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6RC2
            Reporter: bob mcwhirter
            Assignee: Thomas E Enebo


If two classes descend from a common base, become_java! only functions on one, 
and returns nil there-after.

This script:

{noformat}
require 'java'
require 'jruby/core_ext'

class Base
end

class Foo < Base
end

class Bar < Base
end

class Baz
end

puts "Foo => #{Foo.become_java!}"
puts "Bar => #{Bar.become_java!}"
puts "Baz => #{Baz.become_java!}"
{noformat}

produces this result:

{noformat}
Foo => class rubyobj.Foo
Bar => 
Baz => class rubyobj.Baz
{noformat}

-- 
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


Reply via email to