YAML.load can't handle some valid input 
----------------------------------------

                 Key: JRUBY-1659
                 URL: http://jira.codehaus.org/browse/JRUBY-1659
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.x
         Environment: JRuby 1.1b1
            Reporter: Vladimir Sizikov


require 'yaml'
YAML.load("{a: 2007-01-01 01:12:34}")

fails with:
ArgumentError: ScannerException while scanning a plain scalar we had this found 
unexpected ':'

While MRI loads it just fine.

I see the only single place where such exception can be thrown: 
ScannerImpl.java:811.

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