Community
Participate
Working Groups
There are at least two beneficial ways we could use this information. * We can create stack frame objects to pass to Throwable.setStackTrace(), so the exceptions we throw have a nice EGL stack trace. That's understandable to the EGL programmer. * When we catch a NullPointerException we should be able to tell if it came from generated code, the runtime, or an external type. If it came from an external type, change it into a JavaObjectException instead of a NullValueException. (Right now we assume every NullPointerException should be turned into a NullValueException.)
More on the second item: to see if caught ex was thrown from a Java ET, compare its top stack frame with the top of the EGL call stack.
The second item is solved by Bug 382546 - Improve detection of NullValueExceptions.
*** Bug 362487 has been marked as a duplicate of this bug. ***