This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: clear exception indicator


I'm checking this in.  This change the JNI implementation to clear the
exception indication before throwing the exception.

2000-04-20  Tom Tromey  <tromey@cygnus.com>

	* jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.

Tom

Index: jni.cc
===================================================================
RCS file: /cvs/java/libgcj/libjava/jni.cc,v
retrieving revision 1.30
diff -u -r1.30 jni.cc
--- jni.cc	2000/04/20 05:49:48	1.30
+++ jni.cc	2000/04/20 17:18:24
@@ -357,7 +357,11 @@
   _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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]