Array index error in JCodings running latest String#rindex specs
----------------------------------------------------------------

                 Key: JRUBY-3141
                 URL: http://jira.codehaus.org/browse/JRUBY-3141
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
            Reporter: Charles Oliver Nutter
             Fix For: JRuby 1.1.6


Not sure if this is a recent regression, but it's failing in current rubyspecs.

{noformat}
     [java] String#rindex with Regexp
     [java] - behaves the same as String#rindex(string) for escaped string 
regexps
     [java] - returns the index of the first match from the end of string of 
regexp
     [java] - sets $~ to MatchData of match and nil when there's none
     [java] - starts the search at the given offset
     [java] - starts the search at offset + self.length if offset is negative
     [java] org.jcodings.specific.UTF8Encoding:44:in `length': 
java.lang.ArrayIndexOutOfBoundsException: -1
     [java]     from org.joni.ByteCodeMachine:747:in `opAnyChar'
     [java]     from org.joni.ByteCodeMachine:219:in `matchAt'
     [java]     from org.joni.Matcher:300:in `matchCheck'
     [java]     from org.joni.Matcher:503:in `search'
     [java]     from org.jruby.RubyRegexp:556:in `performSearch'
     [java]     from org.jruby.RubyRegexp:544:in `search'
     [java]     from org.jruby.RubyString:1745:in `rindexCommon'
     [java]     from org.jruby.RubyString:1736:in `rindex'
{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