summaryrefslogtreecommitdiff
path: root/libjava/jni.cc
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-20 17:39:30 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-20 17:39:30 +0000
commitdf05d14aef99ec10fe7b6cce5998d694bb4011b7 (patch)
treec3ab210b51d805071744525b1e5c62e9253b4eb7 /libjava/jni.cc
parent24d8c4e40388e2be4e9f1873f70385e458706386 (diff)
downloadgcc-df05d14aef99ec10fe7b6cce5998d694bb4011b7.tar.gz
* jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33285 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r--libjava/jni.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/libjava/jni.cc b/libjava/jni.cc
index cd45ab8feb2..020f7e85696 100644
--- a/libjava/jni.cc
+++ b/libjava/jni.cc
@@ -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