> The new test java/awt/font/JNICheck/FreeTypeScalerJNICheck.java introduced > with https://bugs.openjdk.java.net/browse/JDK-8269223 adds -Xcheck:jni to an > awt related test, and shows on Windows server 2019 the following JNI warning > , so the test JNICheck/FreeTypeScalerJNICheck.java fails on this Windows > version. > > :stdErr: > Thu Oct 28 01:27:10 CEST 2021 > stdout: [WARNING in native method: JNI call made without checking exceptions > when required to from CallStaticVoidMethodV > at > sun.awt.Win32GraphicsEnvironment.initDisplay([email protected]/Native > Method) > at > sun.awt.Win32GraphicsEnvironment.initDisplayWrapper([email protected]/Win32GraphicsEnvironment.java:95) > at > sun.awt.Win32GraphicsEnvironment.<clinit>([email protected]/Win32GraphicsEnvironment.java:63) > at > sun.awt.PlatformGraphicsInfo.createGE([email protected]/PlatformGraphicsInfo.java:34) > at > java.awt.GraphicsEnvironment$LocalGE.createGE([email protected]/GraphicsEnvironment.java:93) > at > java.awt.GraphicsEnvironment$LocalGE.<clinit>([email protected]/GraphicsEnvironment.java:84) > at > java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment([email protected]/GraphicsEnvironment.java:106) > at > FreeTypeScalerJNICheck.runTest(FreeTypeScalerJNICheck.java:53) > at FreeTypeScalerJNICheck.main(FreeTypeScalerJNICheck.java:44) > > We can get rid of the warning by adjusting a JNU_CallStaticMethodByName call > in awt_Win32GraphicsEnv.cpp .
Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision: Add a J2dTraceLn call ------------- Changes: - all: https://git.openjdk.java.net/jdk/pull/6306/files - new: https://git.openjdk.java.net/jdk/pull/6306/files/5d18a76c..ab1101b3 Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=6306&range=01 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=6306&range=00-01 Stats: 5 lines in 1 file changed: 3 ins; 0 del; 2 mod Patch: https://git.openjdk.java.net/jdk/pull/6306.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/6306/head:pull/6306 PR: https://git.openjdk.java.net/jdk/pull/6306
