Bug in RubyHash
---------------

                 Key: JRUBY-1376
                 URL: http://jira.codehaus.org/browse/JRUBY-1376
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.x
            Reporter: Ricardo Trindade
            Priority: Minor


RubyHash breaks if used from java. To reproduce :

1-create a ruby script that calls a java class and passes it a ruby hash :

MyJavaClass.xpto({})

xpto receives a Map

2-In the java class, add a value to the map
3-In the java class, try to retrieve that same value

This causes RubyHash to blow up.

Line 1396 appears to be guilty, it tries to convert java objects to java

return 
JavaUtil.convertRubyToJava(internalGet(JavaUtil.convertJavaToRuby(getRuntime(), 
key)));

I talked about this with Charles, and he asked me to assign to Mar

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