mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 16:22:53 +00:00

Patch for wrapping unchecked exceptions from Java method invocations Recently we had a problem with a NPE occurring in a Java method - it wasn't wrapped into WrappedException and subsequently we did not see the interpreter script stack traces. This is because unchecked throwables aren't wrapped into InvocationTargetException. I changed the relevant code in MemberBox.java to wrap all exceptions (checked and unchecked) into WrappedException. BTW, this is now consistent with how JavaMembers.get() and JavaMembers.put() work - they also wrap all exceptions into WrappedException, not just InvocationTargetException.