Range#step causes NumberFormatException with bad argument
---------------------------------------------------------
Key: JRUBY-2311
URL: http://jira.codehaus.org/browse/JRUBY-2311
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Environment: Jruby 1.1RC3, Java 1.5, OS X 10.4
Reporter: Daniel Berger
Range#step called with a non-numeric causes a NumberFormatException. It should
raise a TypeError. Running this snippet demonstrates the problem:
{noformat}
range = Range.new(0, 9)
range.step(nil) # or 'a', etc
{noformat}
--
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