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

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

Projects

None yet

1 participant

@enebo
Member
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 enebo added this to the JRuby 1.7.11 milestone Feb 5, 2014
@enebo enebo added the core label Feb 5, 2014
@enebo
Member
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