YAML loading incorrectly returns the same instances for strings
---------------------------------------------------------------

                 Key: JRUBY-1898
                 URL: http://jira.codehaus.org/browse/JRUBY-1898
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1b1
            Reporter: Ola Bini
            Assignee: Ola Bini
            Priority: Minor
             Fix For: JRuby 1.1b2


This test case should print true:

{noformat}
require 'yaml'

val = YAML.load(<<YAML)
---
- ">="
- ">="
YAML

p val[0].object_id != val[1].object_id
{noformat}

This is a problem with all strings in YAML, it seems like.

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