Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.5.2
-
Fix Version/s: JRuby 1.5.4, JRuby 1.6RC1
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:HideUbuntu 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]ShowUbuntu 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]
-
Number of attachments :
Description
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:
Unable to find source-code formatter for language: ruby. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
ENCODE62 = Marshal.load(File.open("./encode62_examples", "r"))
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/