[][2**63-1]=2 crashes JRuby
---------------------------
Key: JRUBY-2877
URL: http://jira.codehaus.org/browse/JRUBY-2877
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.3
Reporter: Vladimir Sizikov
{noformat}
jruby -e "[][2**63-1]=2"
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
at org.jruby.RubyArray.store(RubyArray.java:567)
at org.jruby.RubyArray.aset(RubyArray.java:1161)
at org.jruby.RubyArrayInvoker$aset_method_multi.call(Unknown Source)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:171)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:435)
at ruby.__dash_e__.__file__(-e:1)
at ruby.__dash_e__.__file__(-e)
at ruby.__dash_e__.load(-e)
at org.jruby.Ruby.runScript(Ruby.java:542)
at org.jruby.Ruby.runNormally(Ruby.java:455)
at org.jruby.Ruby.runFromMain(Ruby.java:328)
at org.jruby.Main.run(Main.java:194)
at org.jruby.Main.run(Main.java:91)
at org.jruby.Main.main(Main.java:82)
{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