RFR: JDK-8276809: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java shows JNI warning on Windows [v2]

Matthias Baesken mbaesken at openjdk.java.net
Fri Nov 12 08:02:37 UTC 2021


On Thu, 11 Nov 2021 19:21:34 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> I could add a  J2dTraceLn(J2D_TRACE_ERROR, . . . )  in case an exception occurs.  The J2dTraceLn  is already used at some other places in  DWMIsCompositionEnabled so it might fit better than just ignoring the exception.
>
> Before ignoring an exception it is better to check why the warning was raised, if that warning is correct then we should try to propogate/report exception to the app, if it is not possible then we should use trace macro.

Hello, I added a trace call.  This is similar to what is done in https://github.com/openjdk/jdk/blob/master/src/java.desktop/windows/native/libawt/java2d/d3d/D3DRenderQueue.cpp#L869   .

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

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



More information about the client-libs-dev mailing list