Patch: clear exception indicator
Tom Tromey
tromey@cygnus.com
Thu Apr 20 10:39:00 GMT 2000
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
More information about the Java-patches
mailing list