This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: clear exception indicator
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: clear exception indicator
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 20 Apr 2000 11:41:42 -0600
- Reply-To: tromey at cygnus dot com
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