Issue Type: Bug Bug
Affects Versions: JRuby 1.7.2
Assignee: Thomas E Enebo
Created: 04/Apr/13 4:12 AM
Description:

Steps to reproduce:

justin@ubuntu:~ (1.7.2)> irb
irb(main):001:0> x = "HELLO"; y = x.byteslice(2..-1); y.byteslice(2)

Backtrace:

Java::JavaLang::ArrayIndexOutOfBoundsException: 6
	from org.jcodings.specific.UTF8Encoding.length(UTF8Encoding.java:35)
	from org.jruby.util.StringSupport.preciseLength(StringSupport.java:82)
	from org.jruby.RubyString.inspect19(RubyString.java:2459)
	from org.jruby.RubyString$INVOKER$i$0$0$inspect19.call(RubyString$INVOKER$i$0$0$inspect19.gen)
	from org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:306)
	from org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:136)
	from org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:64)
	from org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
	from org.jruby.ast.RescueNode.executeBody(RescueNode.java:224)
	from org.jruby.ast.RescueNode.interpret(RescueNode.java:119)
	from org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
	from org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
	from org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112)
	from org.jruby.runtime.Interpreted19Block.evalBlockBody(Interpreted19Block.java:209)
	from org.jruby.runtime.Interpreted19Block.yield(Interpreted19Block.java:197)
	from org.jruby.runtime.Interpreted19Block.call(Interpreted19Block.java:128)
... 132 levels...
	from org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	from org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75)
	from org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:182)
	from org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:188)
	from org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)
	from org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
	from home.justin.$_dot_rvm.rubies.jruby_minus_1_dot_7_dot_2.bin.irb.__file__(/home/justin/.rvm/rubies/jruby-1.7.2/bin/irb:13)
	from home.justin.$_dot_rvm.rubies.jruby_minus_1_dot_7_dot_2.bin.irb.load(/home/justin/.rvm/rubies/jruby-1.7.2/bin/irb)
	from org.jruby.Ruby.runScript(Ruby.java:810)
	from org.jruby.Ruby.runScript(Ruby.java:803)
	from org.jruby.Ruby.runNormally(Ruby.java:674)
	from org.jruby.Ruby.runFromMain(Ruby.java:523)
	from org.jruby.Main.doRunFromMain(Main.java:390)
	from org.jruby.Main.internalRun(Main.java:279)
	from org.jruby.Main.run(Main.java:221)
	from org.jruby.Main.main(Main.java:201)irb(main):002:0> 
Project: JRuby
Priority: Critical Critical
Reporter: Chamila Wijayarathna
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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