8046894: JNI exception pending in jdk/src/solaris/native/sun/awt/X11Color.c
Reviewed-by: azvegint, prr
This commit is contained in:
parent
2d67061cd9
commit
149fb94d76
@ -1377,7 +1377,7 @@ awtJNI_CreateColorData(JNIEnv *env, AwtGraphicsConfigDataPtr adata,
|
||||
|
||||
/* Unlock now to initialize the SystemColor class */
|
||||
if (lock) {
|
||||
AWT_UNLOCK ();
|
||||
AWT_UNLOCK_CHECK_EXCEPTION(env);
|
||||
}
|
||||
sysColors = (*env)->FindClass (env, "java/awt/SystemColor");
|
||||
CHECK_NULL(sysColors);
|
||||
|
@ -75,6 +75,12 @@ extern void awt_output_flush();
|
||||
AWT_NOFLUSH_UNLOCK(); \
|
||||
} while (0)
|
||||
|
||||
#define AWT_UNLOCK_CHECK_EXCEPTION(env) \
|
||||
do { \
|
||||
AWT_UNLOCK(); \
|
||||
JNU_CHECK_EXCEPTION(env); \
|
||||
} while (0)
|
||||
|
||||
#define AWT_LOCK_IMPL() \
|
||||
(*env)->CallStaticVoidMethod(env, tkClass, awtLockMID)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user