File tree 3 files changed +6
-3
lines changed 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,10 @@ namespace jni
66
66
67
67
inline void CheckJavaException (JNIEnv& env)
68
68
{
69
- if (env.ExceptionCheck ()) throw PendingJavaException ();
69
+ if (env.ExceptionCheck ()) {
70
+ env.ExceptionDescribe ();
71
+ throw PendingJavaException ();
72
+ }
70
73
}
71
74
72
75
inline void CheckJavaExceptionThenErrorCode (JNIEnv& env, jint err)
Original file line number Diff line number Diff line change @@ -532,7 +532,7 @@ struct _JNIEnv {
532
532
{ return functions->ExceptionOccurred (this ); }
533
533
534
534
void ExceptionDescribe ()
535
- { functions->ExceptionDescribe (this ); }
535
+ { if (functions-> ExceptionDescribe ) functions->ExceptionDescribe (this ); }
536
536
537
537
void ExceptionClear ()
538
538
{ functions->ExceptionClear (this ); }
Original file line number Diff line number Diff line change @@ -825,7 +825,7 @@ struct JNIEnv_ {
825
825
return functions->ExceptionOccurred (this );
826
826
}
827
827
void ExceptionDescribe () {
828
- functions->ExceptionDescribe (this );
828
+ if (functions-> ExceptionDescribe ) functions->ExceptionDescribe (this );
829
829
}
830
830
void ExceptionClear () {
831
831
functions->ExceptionClear (this );
You can’t perform that action at this time.
0 commit comments