[OpenJDK 2D-Dev] RFR: 8269223: -Xcheck:jni WARNINGs working with fonts on Linux [v4]

Maxim Kartashev github.com+28651297+mkartashev at openjdk.java.net
Fri Aug 13 12:32:24 UTC 2021


On Fri, 13 Aug 2021 00:07:56 GMT, Phil Race <prr at openjdk.org> wrote:

>> test/jdk/java/awt/font/JNICheck/FreeTypeScalerJNICheck.java line 29:
>> 
>>> 27:  * @summary Verifies that -Xcheck:jni issues no warnings from freetypeScaler.c
>>> 28:  * @library /test/lib
>>> 29:  * @key headful
>> 
>> What about this test is headful ?
>
> oh you are getting metrics for a JFrame ? That's not going to exercise any new font code so is pointless except to make it so the test has to be headful.

But `getFontMetrics()` is the primary "entry point" that generated all the JNI warnings in the first place. And I'm also not sure that we could've gotten all the warnings on Windows without `JFrame`.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4572


More information about the 2d-dev mailing list