In 1.9 mode Object#hash returns Fixnum objects that are equivalent, but have
different object_id values
-------------------------------------------------------------------------------------------------------
Key: JRUBY-6117
URL: https://jira.codehaus.org/browse/JRUBY-6117
Project: JRuby
Issue Type: Bug
Components: Ruby 1.9.2
Affects Versions: JRuby 1.6.4
Environment: JRuby 1.6.4, installed via rvm 1.8.6 on OSX 10.6.4
Reporter: Dan Kubb
Assignee: Thomas E Enebo
Priority: Minor
When I run JRuby in 1.9 mode, and use Object#hash it returns a Fixnum object
that are equivalent but not equal; that is they have different object_id values.
To reproduce: (from the command-line)
jruby --1.9 -e 'obj = Object.new; puts obj.hash.equal?(obj.hash)'
This will return false, but I would expect it to return true. This problem does
not seem to occur in 1.8 mode.
--
This message is automatically generated by JIRA.
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