-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NullPointerException when using for loops #3545
Comments
Thanks Vassilis, have extracted a failing piece into JRuby's internal specs - fails just the same.
|
Leaving a note on this one. Our JIT ignores the search depth value altogether but in interp we walk down looking for a scope. In this case we were counting for loops as full scopes. Since for loops have no scope this makes no sense so I omit it from the counting. |
I was trying to port some legacy code to jruby 9.0.4.0 when I came across this issue.
Attaching backtrace of exception.
The following repository should help you reproduce the problem.
https://github.com/vassilios/test_for_loop/tree/master
Running
Fails with a null pointer exception.
Tested on ubuntu linux with jruby 9.0.4.0
test_for_loop.txt
The text was updated successfully, but these errors were encountered: