Range.new does not raise ArgumentError for bad range values in constructor
--------------------------------------------------------------------------

                 Key: JRUBY-1031
                 URL: http://jira.codehaus.org/browse/JRUBY-1031
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.0.0RC2
         Environment: OS X 10.4.9, Java 1.5, JRuby rev 3672
            Reporter: Daniel Berger
             Fix For: JRuby 1.0.0RC3


This is not legal in MRI:
{noformat}
Range.new('a', 1)
{noformat}
Looking into range.c, it appears that the arguments must pass a "<=>" check.

-- 
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

Reply via email to