commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: Use ExceptionOccurred when JNI 1.2 not available (gthread-jni.c)


From: Mark Wielaard
Subject: FYI: Use ExceptionOccurred when JNI 1.2 not available (gthread-jni.c)
Date: Fri, 09 Jul 2004 12:36:22 +0200

Hi,

Came across the following while trying to debug portable-native-sync.

2004-08-08  Mark Wielaard  <address@hidden>

       * native/jni/gtk-peer/gthread-jni.c (setup_cache): Call
       ExceptionOccurred, not ExceptionCheck, when we don't have JNI 1.2.

This makes it at least debuggable when ExceptionCheck isn't available.
Committed.

Cheers,

Mark

--- native/jni/gtk-peer/gthread-jni.c   7 Jun 2004 21:43:00 -0000       1.13
+++ native/jni/gtk-peer/gthread-jni.c   9 Jul 2004 10:34:33 -0000
@@ -756,7 +756,12 @@
   if (setup_exception_cache (env) < 0)
     return initialized = -1;

-  assert ( ! (*env)->ExceptionCheck (env));
+#ifdef JNI_VERSION_1_2
+  if (HAVE_JNI_VERSION_1_2)
+    assert ( ! (*env)->ExceptionCheck (env));
+  else
+#endif
+    assert ( ! (*env)->ExceptionOccurred (env));

   /* java.lang.Object and its methods */
   lcl_class = (*env)->FindClass (env, "java/lang/Object");

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]