Patch: minor JNI tweak

Tom Tromey tromey@cygnus.com
Mon Mar 27 11:51:00 GMT 2000


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 */


More information about the Java-patches mailing list