diff options
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r-- | libjava/jni.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libjava/jni.cc b/libjava/jni.cc index 9e33be6..549d4fb 100644 --- a/libjava/jni.cc +++ b/libjava/jni.cc @@ -23,6 +23,7 @@ details. */ #include <jvmpi.h> #endif #include <jvmti.h> +#include "jvmti-int.h" #include <java/lang/Class.h> #include <java/lang/ClassLoader.h> @@ -456,6 +457,8 @@ _Jv_JNI_PopSystemFrame (JNIEnv *env) { jthrowable t = env->ex; env->ex = NULL; + if (JVMTI_REQUESTED_EVENT (Exception)) + _Jv_ReportJVMTIExceptionThrow (t); throw t; } } |