Tim Felgentreff created JRUBY-6428:
--------------------------------------
Summary: Regression: Float#to_d doesn't work on 1.7 (did in 1.6)
Key: JRUBY-6428
URL: https://jira.codehaus.org/browse/JRUBY-6428
Project: JRuby
Issue Type: Bug
Components: Standard Library
Affects Versions: JRuby 1.7
Reporter: Tim Felgentreff
Assignee: Thomas E Enebo
{code:none}
jruby --1.9 -v
=> jruby 1.6.7.dev (ruby-1.9.2-p312) (2012-02-06 32028b6) (Java HotSpot(TM)
64-Bit Server VM 1.7.0_02) [linux-amd64-java]
jruby --1.9 -e 'require "bigdecimal"; require "bigdecimal/util"; p 1.1.to_d'
=> #<BigDecimal:31799ca4,'0.11E1',2(4)>}}
{code}
{code:none}
jruby --1.9 -v
=> jruby 1.7.0.dev (ruby-1.9.3-p28) (2012-02-06 1c3a405) (Java HotSpot(TM)
64-Bit Server VM 1.7.0_02) [linux-amd64-java]
jruby --1.9 -e 'require "bigdecimal"; require "bigdecimal/util"; p 1.1.to_d'
=> TypeError: can't convert Float into String
new at org/jruby/ext/bigdecimal/RubyBigDecimal.java:367
to_d at /home/tim/.rbenv/versions/jruby/lib/ruby/1.9/bigdecimal/util.rb:31
(root) at -e:1
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.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