Marshalled ruby hash gets loaded incorrectly
--------------------------------------------
Key: JRUBY-5064
URL: http://jira.codehaus.org/browse/JRUBY-5064
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.5.2
Environment: Ubuntu 10.04.1 LTS (64-bit), kernel 2.6.32-24-generic
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
jruby 1.5.2 (ruby 1.8.7 patchlevel 249) (2010-08-20 1c5e29d) (Java HotSpot(TM)
64-Bit Server VM 1.6.0_20) [amd64-java]
Reporter: Matias Korhonen
Attachments: encode62_examples
Loading a marshalled Ruby hash from a file succeeds with JRuby 1.5.2, but one
of the hash keys is completely wrong (-125 instead of 60803). The marshalled
hash loads just fine in 1.8.7-p302, 1.9.2-p0, and Rubinius 1.0.1.
Code used to load the hash is fairly standard stuff:
{code:ruby}
ENCODE62 = Marshal.load(File.open("./encode62_examples", "r"))
{code}
I've attached the problem marshalled hash and it is also available in my
radix62 repo: http://github.com/k33l0r/radix62/tree/master/spec/support/
--
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