Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1
-
Fix Version/s: JRuby 1.1.1
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:Latest JRuby 1.1
-
Number of attachments :
Description
In MRI:
p ENV.object_id p ENV.to_hash.object_id
prints out different ids.
In JRuby, the same ids are printed.
This leads to numerous rubyspec failures, since the tests try to clean the ENV and the restore it from an instance returned by to_hash.
And in JRuby case, since the same instance is returned, there is no way to restore ENV to older values.
Will fix.
Fixed in rev. r6496 on trunk.