# HG changeset patch # User serb # Date 1408022398 -3600 # Node ID da1711644b77f2f995003cdbee81edca57b0a44a # Parent 4d4a67fa05052fbf46ad858b3088c7b9e6eaa8cb 8046887: JNI exception pending in jdk/src/solaris/native/sun/awt: awt_DrawingSurface.c, awt_GraphicsEnv.c, awt_InputMethod.c, sun_awt_X11_GtkFileDialogPeer.c Reviewed-by: azvegint, prr diff -r 4d4a67fa0505 -r da1711644b77 jdk/src/solaris/native/sun/awt/awt_GraphicsEnv.c --- a/jdk/src/solaris/native/sun/awt/awt_GraphicsEnv.c Wed Aug 13 21:45:53 2014 +0400 +++ b/jdk/src/solaris/native/sun/awt/awt_GraphicsEnv.c Thu Aug 14 14:19:58 2014 +0100 @@ -1348,7 +1348,9 @@ } /* Make Color Model object for this GraphicsConfiguration */ - colorModel = awtJNI_GetColorModel (env, adata); + colorModel = (*env)->ExceptionCheck(env) + ? NULL : awtJNI_GetColorModel (env, adata); + AWT_UNLOCK (); return colorModel; @@ -2052,7 +2054,7 @@ AWT_FLUSH_UNLOCK(); - if (!success) { + if (!success && !(*env)->ExceptionCheck(env)) { JNU_ThrowInternalError(env, "Could not set display mode"); } #endif /* !HEADLESS */ diff -r 4d4a67fa0505 -r da1711644b77 jdk/src/solaris/native/sun/awt/sun_awt_X11_GtkFileDialogPeer.c --- a/jdk/src/solaris/native/sun/awt/sun_awt_X11_GtkFileDialogPeer.c Wed Aug 13 21:45:53 2014 +0400 +++ b/jdk/src/solaris/native/sun/awt/sun_awt_X11_GtkFileDialogPeer.c Thu Aug 14 14:19:58 2014 +0100 @@ -246,8 +246,14 @@ } str = (*env)->NewStringUTF(env, entry); - if (str && !(*env)->ExceptionCheck(env)) { + if((*env)->ExceptionCheck(env)){ + break; + } + if (str) { (*env)->SetObjectArrayElement(env, array, i, str); + if((*env)->ExceptionCheck(env)){ + break; + } } }