Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.7.0.pre2
-
Fix Version/s: JRuby 1.7.0.RC1
-
Component/s: Extensions
-
Labels:None
-
Environment:jruby 1.7.0.preview2.dev (1.9.3p203) 2012-08-02 2c561b0 on OpenJDK 64-Bit Server VM 1.7.0_04-icedtea-b21 [linux-amd64]
-
Number of attachments :
Description
$ ./bin/jruby -vr yaml -e 'p YAML.load(YAML.dump(lambda{}))'
jruby 1.7.0.preview2.dev (1.9.3p203) 2012-08-02 2c561b0 on OpenJDK 64-Bit Server VM 1.7.0_04-icedtea-b21 [linux-amd64]
#<Proc:0x68dfb29d@(null):0>
Thanks!
MRI behaves the same way. How did you come to the conclusion that this is a bug?
$ ruby -vr yaml -e 'p YAML.dump(lambda{})' ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0] "--- !ruby/object:Proc {}\n"