Please review this fix to the native code component of the SunMSCAPI provider. It now checks whether a Java exception (thrown from JNI) is already pending, before continuing.
Bug: https://bugs.openjdk.java.net/browse/JDK-8036612 Webrev: http://cr.openjdk.java.net/~vinnie/8036612/webrev.00/ Thanks.