
|
If you were logged in you would be able to see more operations.
|
|
|
Calling YAML.load with something like an empty hash or array raises a java.lang.IllegalArgumentException with the text "Object: is not a legal argument to this wrapper, cause it doesn't respond to "read"." instead of a Ruby TypeError with the text "instance of IO needed."
A test case is attached; on JRuby 1.0.2 the bad exception is caught and handled by Test::Unit, but on JRuby 1.1b1 it flys all the way to the top and kills the process. The test passes in C Ruby.
Paste of the test case:
|
|
Description
|
Calling YAML.load with something like an empty hash or array raises a java.lang.IllegalArgumentException with the text "Object: is not a legal argument to this wrapper, cause it doesn't respond to "read"." instead of a Ruby TypeError with the text "instance of IO needed."
A test case is attached; on JRuby 1.0.2 the bad exception is caught and handled by Test::Unit, but on JRuby 1.1b1 it flys all the way to the top and kills the process. The test passes in C Ruby.
Paste of the test case:
|
Show » |
|