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
Closed

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

enebo opened this issue Feb 5, 2014 · 1 comment
Labels
Milestone

Comments

@enebo
Copy link
Member

@enebo enebo 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
Copy link
Member Author

@enebo enebo 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
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant