Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: JRuby 1.2
-
Fix Version/s: None
-
Component/s: Java Integration
-
Labels:None
-
Environment:Java 6 / OS X 10.5
-
Testcase included:yes
-
Number of attachments :
Description
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.
Have you tried this against JRuby 1.3RC1? I'm a little swamped at the moment, but please give it another shot. I think there may have been a related bug fixed in the 1.3 cycle.