Objects loaded via Marshal don't get Java class applied corrected unless passed
through fn taking exact type
------------------------------------------------------------------------------------------------------------
Key: JRUBY-5317
URL: http://jira.codehaus.org/browse/JRUBY-5317
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.5.3
Environment: Solaris, Sun JVM
Reporter: Ben Summers
Attachments: jruby_class_testcase.tgz
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.
--
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