YAML parser does not appear to deserialize object types.
--------------------------------------------------------

                 Key: JRUBY-2192
                 URL: http://jira.codehaus.org/browse/JRUBY-2192
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1+
            Reporter: Mark Imbriaco


# $ ruby yaml_test.rb 
# class = Foo

# $ jruby yaml_test.rb 
# class = YAML::PrivateType

require 'yaml'

class Foo < Hash; end

obj = YAML.load(DATA)
puts "class = #{obj.class}"

__END__
--- !ruby/hash:Foo
  key: "value"
  otherkey: "othervalue"

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