Marshal.load fails when Kernel.read is defined
----------------------------------------------
Key: JRUBY-5223
URL: http://jira.codehaus.org/browse/JRUBY-5223
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.5.5
Environment: any
Reporter: Hiroshi Nakamura
>From https://github.com/ykf/sandbox
{noformat}
$ ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
$ jruby -v
jruby 1.5.5 (ruby 1.8.7 patchlevel 249) (2010-11-10 4bd4200) (Java HotSpot(TM)
64-Bit Server VM 1.6.0_20) [amd64-java]
--
$ ruby test.rb
[1, 2, 3]
"\004\b[\bi\006i\ai\b"
[1, 2, 3]
$ jrubyc test.rb
Compiling test.rb to class test
$ jruby test.class
[1, 2, 3]
"\004\b[\bi\006i\ai\b"
test.rb:12:in `read': wrong # of arguments(1 for 0) (ArgumentError)
from test.rb:12:in `load'
from test.rb:12:in `main'
from test.rb:16
--
$ ruby test2.rb
[1, 2, 3]
"\004\b[\bi\006i\ai\b"
[1, 2, 3]
$ jrubyc test2.rb
Compiling test2.rb to class test2
$ jruby test2.class
[1, 2, 3]
"\004\b[\bi\006i\ai\b"
[1, 2, 3]
{noformat}
master should be fixed by https://github.com/jruby/jruby/commit/62e7d571 though
I didn't write regression specs (My bad.)
I think it should go to jruby-1_5, too.
--
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