String#[range]= does not raise IndexError when regex doesn't match
------------------------------------------------------------------

                 Key: JRUBY-1012
                 URL: http://jira.codehaus.org/browse/JRUBY-1012
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.0.0RC2
         Environment: Windows XP, Java 1.6
            Reporter: Daniel Berger
            Priority: Minor


According to MRI, if the regular expression or string is used as the index 
doesn't match a position in the string, IndexError is raised. JRuby does not:
{noformat}
assert_raises(IndexError){ "qwerty"[/foobar/] = 'foo' }
{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

Reply via email to