We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
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
Probably all JRuby releases since we started optimizing trivial rescues.
The exception in the following code should have a proper backtrace and not blow up in backtrace_locations.
backtrace_locations
$ jruby -e 'exception = (1 / 0) rescue $!; exception.backtrace_locations' Unhandled Java exception: java.lang.NullPointerException java.lang.NullPointerException: null backtrace_locations at org/jruby/RubyException.java:111
It doesn't have a backtrace and it blows up. $! is not being treated as an escape condition for the exception.
The text was updated successfully, but these errors were encountered:
bc7c127
Add spec for backtrace from rescue that only captures $!.
b610805
See #4240
d0c8343
See jruby/jruby#4240
No branches or pull requests
Environment
Probably all JRuby releases since we started optimizing trivial rescues.
Expected Behavior
The exception in the following code should have a proper backtrace and not blow up in
backtrace_locations
.Actual Behavior
It doesn't have a backtrace and it blows up. $! is not being treated as an escape condition for the exception.
The text was updated successfully, but these errors were encountered: