YAML.dump requires second argument to .respond_to? :write
---------------------------------------------------------
Key: JRUBY-1274
URL: http://jira.codehaus.org/browse/JRUBY-1274
Project: JRuby
Issue Type: Bug
Components: Miscellaneous
Affects Versions: JRuby 1.0.0
Environment: Darwin lumpygravy.local 8.10.1 Darwin Kernel Version
8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 i386
Reporter: Jonathan Simms
Assignee: Thomas E Enebo
Priority: Minor
Attachments: jyml.rb
Basically, c-ruby doesn't require that the argument to {{YAML.dump}}
{{respond_to? :write}}, instead i believe it uses {{:<<}}, while the JRuby
{{YAML.dump}} throws an exception if you attempt to pass an object that does
not {{respond_to? :write}}.
the attached ruby test/unit test case runs without error/failure on ruby 1.8.6,
but fails with jruby 1.0.0
--
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