error from ManyVarsDynamicScope.java after calling jruby->java->jruby
---------------------------------------------------------------------
Key: JRUBY-5057
URL: http://jira.codehaus.org/browse/JRUBY-5057
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.5.2
Environment: Mac OS 10.6.4
$ jruby -v
jruby 1.5.2 (ruby 1.8.7 patchlevel 249) (2010-08-20 1c5e29d) (Java HotSpot(TM)
64-Bit Server VM 1.6.0_20) [x86_64-java]
$ jruby --1.9 -v
jruby 1.5.2 (ruby 1.9.2dev trunk 24787) (2010-08-20 1c5e29d) (Java HotSpot(TM)
64-Bit Server VM 1.6.0_20) [x86_64-java]
Reporter: Hegewald
Assignee: Thomas E Enebo
Attachments: jrubyerror.zip
Dear JRuby Team,
I can reproduce the error doing the following steps:
- compile
javac -cp path/to/jruby.jar:. jrubyerror/Test.java
- run
jruby --1.9 -w jrubyerror.rb
- output
1.5.2
ManyVarsDynamicScope.java:71:in `getValue':
java.lang.ArrayIndexOutOfBoundsException: 1
from LocalVarNode.java:116:in `interpret'
from FCallOneArgNode.java:36:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from RootNode.java:129:in `interpret'
from Ruby.java:711:in `runInterpreter'
from Ruby.java:572:in `runNormally'
from Ruby.java:414:in `runFromMain'
from Main.java:286:in `run'
from Main.java:128:in `run'
from Main.java:97:in `main'
This error does not occur in 1.8 mode:
jruby -w jrubyerror.rb
1.5.2
nil
Cheers,
-- Jan Hegewald
--
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