String#split works incorrectly with negative argument
-----------------------------------------------------

                 Key: JRUBY-1729
                 URL: http://jira.codehaus.org/browse/JRUBY-1729
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.x
         Environment: Latest JRuby 1.1b1 from trunk
            Reporter: Vladimir Sizikov


"hello".split(//, -1) returns ["h", "e", "l", "l", "o"], but in MRI 1.8 and MRI 
1.9 it returns:

["h", "e", "l", "l", "o", "]

This leads to numerous spec test failures from Rubinius.

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