This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: minor JNI tweak
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: minor JNI tweak
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 27 Mar 2000 12:53:01 -0700
- Reply-To: tromey at cygnus dot com
I'm checking in this patch.
It will make stub generation in the compiler a bit simpler.
2000-03-26 Tom Tromey <tromey@cygnus.com>
* jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
set, throw it.
(call): Don't throw exception here.
Tom
Index: jni.cc
===================================================================
RCS file: /cvs/java/libgcj/libjava/jni.cc,v
retrieving revision 1.27
diff -u -r1.27 jni.cc
--- jni.cc 2000/03/14 21:59:54 1.27
+++ jni.cc 2000/03/27 19:39:13
@@ -298,6 +298,9 @@
_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 @@
ret, real_args);
_Jv_JNI_PopSystemFrame (env);
-
- if (env->ex)
- JvThrow (env->ex);
}
#endif /* INTERPRETER */