String#split raising AIOOB when passed empty string
---------------------------------------------------

                 Key: JRUBY-1448
                 URL: http://jira.codehaus.org/browse/JRUBY-1448
             Project: JRuby
          Issue Type: Bug
            Reporter: Charles Oliver Nutter
            Assignee: Thomas E Enebo
            Priority: Critical
             Fix For: JRuby 1.1.0


{noformat}
"foo".split("")

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
        at org.jruby.RubyString.split(RubyString.java:2359)
        at org.jruby.RubyStringInvoker$split_method_0_2.call(Unknown Source)
        at 
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:154)
        at 
org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:107)
        at __dash_e__.__file__(-e:1)
        at __dash_e__.load(-e)
        at org.jruby.Ruby.runScript(Ruby.java:562)
        at org.jruby.Ruby.runNormally(Ruby.java:484)
        at org.jruby.Ruby.runFromMain(Ruby.java:409)
        at org.jruby.Main.runInterpreter(Main.java:223)
        at org.jruby.Main.runInterpreter(Main.java:179)
        at org.jruby.Main.run(Main.java:121)
        at org.jruby.Main.main(Main.java:96)
{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