RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations

Phil Race prr at openjdk.org
Tue Jan 16 20:56:49 UTC 2024


On Fri, 12 Jan 2024 17:47:23 GMT, Christoph Langer <clanger at openjdk.org> wrote:

> Maybe the usual control flow would call the wrapping native method DWMIsCompositionEnabled() from somewhere else initially such that the initialization of Win32GraphicsEnvironment would not go through initScreens or similar.

I have not worked out how this can actually happen. 
I've built JDK in fast-debug mode and added java.awt.headless=true and added a bunch of printfs to be sure the code is going where I think it is but I can't make this test fail.

I am running my current tests locally on Windows 11, but our CI testing does run this on Windows Server (various versions, 2016, 2019 and 2022) 

The only way I can make this fail is to ACTUALLY add a 2nd JNI call in there - I was beginning to wonder if somehow we were missing the WARNING, but in fact that is working.

So your code path is different but what is the exact reason ? That is what we should understand. Maybe it will
be 'ho hum, now I see' or maybe it will point to something we need to address.

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

PR Comment: https://git.openjdk.org/jdk/pull/17404#issuecomment-1894497216


More information about the client-libs-dev mailing list