Skip to content
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

NPE not being caught or is printing out for no reason #1485

Closed
enebo opened this Issue Feb 5, 2014 · 1 comment

Comments

Projects
None yet
1 participant
@enebo
Copy link
Member

commented Feb 5, 2014

spec/java_integration/extenstions/kernel_spec.rb used to raise a NPE as a test to make sure it can be caught and it does not fail but we proceed to see the stacktrace getting printed out anyways. I changed this test to use AIOOBE and it went away. Original code is:

lambda { raise NullPointerException.new }.should raise_error(NullPointerException)

enebo added a commit that referenced this issue Feb 5, 2014

@enebo enebo added this to the JRuby 1.7.11 milestone Feb 5, 2014

@enebo enebo added the core label Feb 5, 2014

@enebo

This comment has been minimized.

Copy link
Member Author

commented Feb 5, 2014

Someone must have been debugging something in Proc and left an extra catch for NPE in it.

@enebo enebo closed this Feb 5, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.