Dmytrii Nagirniak created JRUBY-6327:
----------------------------------------

             Summary: java.lang.StringIndexOutOfBoundsException: String index 
out of range: 1
                 Key: JRUBY-6327
                 URL: https://jira.codehaus.org/browse/JRUBY-6327
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.7
         Environment: jruby 1.7.0.dev (ruby-1.9.3-p6) (2012-01-09 dc1741a) 
(Java HotSpot(TM) Client VM 1.6.0_29) [darwin-i386-java]
            Reporter: Dmytrii Nagirniak
            Assignee: Thomas E Enebo


It DID work on 1.6.5.

Looks like you guys aren't checking the length.

     Failure/Error: get(:index).should redirect_to edit_current_company_url
     NativeException:
       java.lang.StringIndexOutOfBoundsException: String index out of range: 1
     # java/lang/String.java:686:in `charAt'
     # java/util/regex/Matcher.java:703:in `appendReplacement'
     # java/util/regex/Matcher.java:813:in `replaceAll'
     # java/lang/String.java:2189:in `replaceAll'
     # java/lang/String.java:686:in `charAt'
     # java/util/regex/Matcher.java:703:in `appendReplacement'
     # java/util/regex/Matcher.java:813:in `replaceAll'
     # java/lang/String.java:2189:in `replaceAll'
     # 
file:/Users/dnagir/.rvm/rubies/jruby-head/lib/jruby.jar!/jruby/java/java_ext/java.lang.rb:11:in
 `each'
     # ./app/models/user.rb:28:in `all_companies'

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.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