From 4e2d1dbdd309f6b7aa3af8ae146bfbc3e2517cb0 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 27 Mar 2000 19:51:46 +0000 Subject: [PATCH] jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception set, throw it. * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception set, throw it. (call): Don't throw exception here. From-SVN: r32770 --- libjava/ChangeLog | 6 ++++++ libjava/jni.cc | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 3f42bfb..dd2a68d 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,11 @@ 2000-03-26 Tom Tromey + * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception + set, throw it. + (call): Don't throw exception here. + +2000-03-26 Tom Tromey + * java/lang/mprec.h: Use SIZEOF_VOID_P. * interpret.cc: Use SIZEOF_VOID_P. * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P. diff --git a/libjava/jni.cc b/libjava/jni.cc index 6cf489f..da9a848 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 */ -- 2.7.4