String#rindexs is incorrect
---------------------------

                 Key: JRUBY-1731
                 URL: http://jira.codehaus.org/browse/JRUBY-1731
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
         Environment: Latest JRuby 1.1b1
            Reporter: Vladimir Sizikov


Consider the following:

{noformat}
puts "blablabla".rindex(/.{0}/)
puts "blablabla".rindex(/.{1}/)
puts "blablabla".rindex(/.{2}/)
{noformat}

MRI prints:
9
8
7

JRuby prints:
8
8
7

This also leads to some rubinius spec failures.

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