YAML.tagged_classes retuns very few items compared to MRI
---------------------------------------------------------

                 Key: JRUBY-2019
                 URL: http://jira.codehaus.org/browse/JRUBY-2019
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
         Environment: Latest JRuby 1.1RC1 from trunk.
            Reporter: Vladimir Sizikov


New rubyspec fails due to this:

YAML.tagged_classes["tag:yaml.org,2002:int"].should === Integer

But JRuby returns nil.

Actually, tagget_classes retuns just:
{"tag:yaml.org,2002:omap"=>YAML::Omap, "tag:yaml.org,2002:pairs"=>YAML::Pairs, 
"tag:yaml.org,2002:set"=>YAML::Set}

But in MRI it returns:
{noformat}
{"tag:yaml.org,2002:set"=>YAML::Set, "tag:ruby.yaml.org,2002:sym"=>Symbol, 
"tag:ruby.yaml.org,2002:object"=>Object, "tag:yaml.org,2002:omap"=>YAML::Omap, 
"tag:yaml.org,2002:timestamp#ymd"=>Date, "tag:ruby.yaml.org,2002:hash"=>Hash, 
"tag:yaml.org,2002:pairs"=>YAML::Pairs, 
"tag:yaml.org,2002:bool#yes"=>TrueClass, "tag:yaml.org,2002:int"=>Integer, 
"tag:yaml.org,2002:timestamp"=>Time, "tag:ruby.yaml.org,2002:time"=>Time, 
"tag:ruby.yaml.org,2002:symbol"=>Symbol, "tag:yaml.org,2002:binary"=>String, 
"tag:ruby.yaml.org,2002:string"=>String, "tag:yaml.org,2002:str"=>String, 
"tag:yaml.org,2002:map"=>Hash, "tag:yaml.org,2002:null"=>NilClass, 
"tag:yaml.org,2002:bool#no"=>FalseClass, 
"tag:ruby.yaml.org,2002:regexp"=>Regexp, "tag:ruby.yaml.org,2002:range"=>Range, 
"tag:ruby.yaml.org,2002:array"=>Array, 
"tag:ruby.yaml.org,2002:exception"=>Exception, "tag:yaml.org,2002:seq"=>Array, 
"tag:ruby.yaml.org,2002:struct"=>Struct, "tag:yaml.org,2002:float"=>Float}

{noformat}

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