Env.to_hash should return new hash instance
-------------------------------------------

                 Key: JRUBY-2393
                 URL: http://jira.codehaus.org/browse/JRUBY-2393
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1
         Environment: Latest JRuby 1.1
            Reporter: Vladimir Sizikov
            Assignee: Vladimir Sizikov
             Fix For: JRuby 1.1.1


In MRI:

{noformat}
p ENV.object_id
p ENV.to_hash.object_id
{noformat}

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.

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