extending Struct and override initialize would make Marshal fail
----------------------------------------------------------------
Key: JRUBY-5875
URL: http://jira.codehaus.org/browse/JRUBY-5875
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.6.2
Environment: (Java HotSpot(TM) 64-Bit Server VM 1.6.0_24)
[darwin-x86_64-java]
Reporter: Lin Jen-Shin
(checked with github master fe996d85385cf635b2ecb6d4bfe6c4e698f5a321 too)
Here's the code demonstrates this:
https://gist.github.com/1029386
class S < Struct.new(:a)
def initialize
end
end
Marshal.load(Marshal.dump(S.new))
# ArgumentError: wrong number of arguments (1 for 0)
# load at org/jruby/RubyMarshal.java:148
Thank you for the fix!
--
This message is automatically generated by JIRA.
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