newInstance and getDeclaredConstructor fail to respect class overridden in JRuby
--------------------------------------------------------------------------------

                 Key: JRUBY-3622
                 URL: http://jira.codehaus.org/browse/JRUBY-3622
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.2
         Environment: Java 6 / OS X 10.5
            Reporter: Stephen Judkins
         Attachments: jruby-instantation-bug.zip

When a Java class is inherited from in Ruby, passing it to a Java method that 
uses newInstance or getDeclaredConstructor results in an object that has none 
of the overridden methods.  Essentially, it appears to instantiate its 
superclass.

If object instantiation occurs within Ruby, passing the object to a Java method 
results in the correct behavior.

There is a failing test case included.

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