Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.5.3
-
Fix Version/s: JRuby 1.7.0.pre1
-
Component/s: Java Integration
-
Labels:None
-
Environment:Solaris, Sun JVM
-
Number of attachments :
Description
Download and run the test case.
The output is
classViaCreating, class = org.jruby.RubyObject
functionTakingObject, class = ImplementingClass_476069089
functionTakingObject, class = ImplementingClass_476069089
I would expect it to be
classViaCreating, class = ImplementingClass2_476069293
functionTakingObject, class = ImplementingClass_476069089
functionTakingObject, class = ImplementingClass_476069089
Uncommenting a line which passses another object of that type of a Java function expecting the exact type in testcase2.rb will change those lines to the expected output.
Using a similar function which just takes an Object won't change it.
-