new map proxy's inspect method doesn't work when Map object is created in Ruby
------------------------------------------------------------------------------
Key: JRUBY-5353
URL: http://jira.codehaus.org/browse/JRUBY-5353
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.6RC1
Reporter: Yoko Harada
Fix For: JRuby 1.6
When java.util.Map type object is created in Ruby code, inspect method doesn't
work at first. But, after using some Hash method, inspect works. This never
happens when the Map type object is created in Java then given to Ruby.
{noformat}
irb(main):001:0> require 'java'
=> true
irb(main):002:0> m = java.util.HashMap.new
=> {}
irb(main):003:0> m.put(1, 100)
=> nil
irb(main):004:0> m.inspect
=> "{}"
irb(main):005:0> m.merge!({2 => 200})
=> {1=>100, 2=>200}
irb(main):006:0> m.inspect
=> "{1=>100, 2=>200}"
irb(main):007:0> m.class
=> Java::JavaUtil::HashMap
{noformat}
--
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