summaryrefslogtreecommitdiff
path: root/libjava/jni.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r--libjava/jni.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/jni.cc b/libjava/jni.cc
index 6cf489f3d9a..da9a84860ee 100644
--- a/libjava/jni.cc
+++ b/libjava/jni.cc
@@ -298,6 +298,9 @@ extern "C" void
_Jv_JNI_PopSystemFrame (JNIEnv *env)
{
_Jv_JNI_PopLocalFrame (env, NULL, MARK_SYSTEM);
+
+ if (env->ex)
+ throw env->ex;
}
// This function is used from other template functions. It wraps the
@@ -1723,9 +1726,6 @@ _Jv_JNIMethod::call (ffi_cif *, void *ret, ffi_raw *args, void *__this)
ret, real_args);
_Jv_JNI_PopSystemFrame (env);
-
- if (env->ex)
- JvThrow (env->ex);
}
#endif /* INTERPRETER */