On Wed, 6 Jan 2021 21:14:06 GMT, Phil Race <[email protected]> wrote:
> Proposed updates to JNI error handling.
src/java.desktop/macosx/native/libosxapp/JNIUtilities.h line 46:
> 44: if ((*env)->ExceptionOccurred(env) != NULL) { \
> 45: (*env)->ExceptionDescribe(env); \
> 46: } \
So the update here is that if we are not on the appkit thread, make sure a java
exception is thrown.
If we are on the appkit thread, clear any java exception since it isn't going
anywhere but do it using
describe which prints it.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1967