Yaml problem creating single instance for multiple identical objects
--------------------------------------------------------------------

                 Key: JRUBY-1472
                 URL: http://jira.codehaus.org/browse/JRUBY-1472
             Project: JRuby
          Issue Type: Bug
          Components: Miscellaneous
    Affects Versions: JRuby 1.0.1
         Environment: linux fc6 x86_64
            Reporter: steve wynn
            Assignee: Thomas E Enebo


Following code gives identical object ids using jruby

require 'yaml'

class YamlTest
        def initialize()
                @test = Hash.new
                @test["hello"] = "foo"
        end
end

list = Array.new
list << YamlTest.new
list << YamlTest.new
list << YamlTest.new

list.each do |x|
        p x.object_id
end

ylist = YAML.dump(list)

yamlstr = YAML.load(ylist)

yamlstr.each do |x|
        p x.object_id
end


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