[1.9] If Kernel can't coerce an object into a Float, it should raise a TypeError
--------------------------------------------------------------------------------
Key: JRUBY-4080
URL: http://jira.codehaus.org/browse/JRUBY-4080
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.4.0RC1
Reporter: Hiro Asari
{noformat}
surfboard:~$ ruby -v -e 'p Math.atanh("abc")'
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
-e:1:in `atanh': invalid value for Float(): "abc" (ArgumentError)
from -e:1
surfboard:~$ ruby19 -v -e 'p Math.atanh("abc")'
ruby 1.9.2dev (2009-10-09 trunk 25274) [x86_64-darwin10.0.0]
-e:1:in `atanh': can't convert String into Float (TypeError)
from -e:1:in `<main>'
{noformat}
Right now, JRuby follows the 1.8 behavior even in the 1.9 mode.
--
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