Jirb toplevel ArrayIndexOutOfBoundsException
--------------------------------------------

                 Key: JRUBY-4193
                 URL: http://jira.codehaus.org/browse/JRUBY-4193
             Project: JRuby
          Issue Type: Bug
          Components: Interpreter
    Affects Versions: JRuby 1.4.0RC1
         Environment: Mac OSX 1.5
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)
jruby 1.4.0RC1 (ruby 1.8.7 patchlevel 174) (2009-09-30 80c263b) (Java 
HotSpot(TM) 64-Bit Server VM 1.6.0_13) [x86_64-java]
irb 0.9.5(05/04/13)

            Reporter: Paul Gresham
            Priority: Trivial


Found an unimportant, but repeatable bug in jirb toplevel. Reporting in case it 
gives any clues to other potential issues.

$> jirb
irb(main):001:0> `
irb(main):002:0` 1`

enter jirb, type a backquote, followed by return
then a 1 a closing backquote, return and boom

ByteList.java:514:in `equal': java.lang.ArrayIndexOutOfBoundsException: 2
        from RubyString.java:884:in `op_equal'
        from org/jruby/RubyString$i_method_1_0$RUBYINVOKER$op_equal.gen:-1:in 
`call'
        from RubyClass.java:568:in `finvoke'
        from RuntimeHelpers.java:409:in `invoke'
        from RubyBasicObject.java:317:in `callMethod'
        from RubyObject.java:567:in `equalInternal'
        from RubyObject.java:559:in `op_eqq'
        from org/jruby/RubyObject$i_method_1_0$RUBYINVOKER$op_eqq.gen:-1:in 
`call'
        from CachingCallSite.java:310:in `cacheAndCall'
        from CachingCallSite.java:149:in `call'
        from WhenOneArgNode.java:35:in `whenSlowTest'
        from WhenOneArgNode.java:46:in `when'
        from CaseNode.java:133:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from IfNode.java:119:in `interpret'
...


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