Hello Everyone on Java2D group Good day to you.
Please find herewith, webrev with changes to fix the following issue: Bug ID / Title : JDK-8152971 -Xcheck:jni - WARNING in native method Bug Link : https://bugs.openjdk.java.net/browse/JDK-8152971 Description on Bug : . Submitter has provided a test code with the bug. . When the test code is run (with -Xcheck:jni in JVM options), JNI warnings are thrown. . The warnings mention that JNI functions invoke Java methods without checking for exceptions. Description on Changes : . The bug did not appear in Jdk 8 b132 or earlier but is reproducible with 8u91 and 9 versions. I believe, strict check for conformance has been added recently in JVM that has caused this issue. . In the proposed fix, I 've added JNIEnv->ExceptionCheck and ExceptionClear functions at required places. Webrev Link: http://cr.openjdk.java.net/~pnarayanan/8152971/webrev.00/ Kindly review the changes at your available time and provide your feedback. Thanks for your time in review Have a good day Prahalad N