The following tests fail with "FATAL ERROR in native method: JNI call made with pending exception" when run with -Xcheck:jni
nsk/jdi/ClassType/newInstance/newinstance004
nsk/jdi/ClassType/invokeMethod/invokemethod004
nsk/jdi/ObjectReference/invokeMethod/invokemethod005
The issue appears to be a long standing issue in the JDWP agent -- in the invoker it saves the exception from the invoked method in a global ref before clearing the exception. Most JNI calls cannot be made when there is a pending exception so the right solution is to clear the exception before saving it.
###@###.### 2005-1-27 11:01:46 GMT