OSDN Git Service

* jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Apr 2000 17:39:30 +0000 (17:39 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Apr 2000 17:39:30 +0000 (17:39 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33285 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/jni.cc

index f5806da..79ab555 100644 (file)
@@ -1,3 +1,7 @@
+2000-04-20  Tom Tromey  <tromey@cygnus.com>
+
+       * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
+
 2000-04-19  Tom Tromey  <tromey@cygnus.com>
 
        * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
index cd45ab8..020f7e8 100644 (file)
@@ -357,7 +357,11 @@ _Jv_JNI_PopSystemFrame (JNIEnv *env)
   _Jv_JNI_PopLocalFrame (env, NULL, MARK_SYSTEM);
 
   if (env->ex)
-    throw env->ex;
+    {
+      jthrowable t = env->ex;
+      env->ex = NULL;
+      throw t;
+    }
 }
 
 // This function is used from other template functions.  It wraps the