String hash keys should be copied
---------------------------------
Key: JRUBY-4029
URL: http://jira.codehaus.org/browse/JRUBY-4029
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Environment: JRuby 1.5.0dev
Reporter: Yutaka HARA
Priority: Minor
CRuby copies the hash key if it is a String (in case the key is modified).
Exmaple:
s = "foo"
h = {s => 1}
s.reverse!
p h["foo"] #=> 1 in Ruby 1.8/1.9 ; nil in JRuby 1.5.0dev
--
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