Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
Summary of enhancements to checked JNI after a number mail discussions and related bugs: 1) Checked JNI to enforce calling "ExceptionOccurred()" or "ExceptionOccurred()" after using "Call*Method()" functions, before using further JNI functions. Warn if exception check not carried out before calling a method that does not allow pending exceptions. Subtle difference to the current "there is a pending exception" check, does the programmer actual call one of the check functions. 2) If a JNI method implicitly grew the local ref capacity beyond what was planned for, warn the user. This of course excludes PushLocalFrame or EnsureLocalCapacity.