From: Charles Oliver Nutter Date: 2009-02-21T01:07:14+09:00 Subject: Re: Jruby yaml load issue with floats? Pradeep Gatram wrote: > Try this with both MRI and Jruby 1.1.6 (with active support 2.2.2) > > irb(main):004:0> require 'rubygems' > => true > irb(main):005:0> require 'activesupport' > => true > irb(main):006:0> YAML.load(YAML.dump(3.0)).eql?(3.0) > => true > > MRI returns true, while JRuby returns false !!! > > The root cause is that JRuby is loading the yaml as > irb(main):021:0> YAML.load(YAML.dump(3.0)) > => # > > instead of as 3.0 This should be fixed on trunk/1.2. Can you test out a nightly build? http://jruby.headius.com:8080/hudson/job/jruby-dist/ - Charlie