[jdk21u-dev] RFR: 8348625: [21u, 17u] Revert JDK-8185862 to restore old java.awt.headless behavior on Windows [v2]
Frederic Thevenet
fthevenet at openjdk.org
Tue Jan 28 16:47:54 UTC 2025
On Tue, 28 Jan 2025 14:32:29 GMT, Christoph Langer <clanger at openjdk.org> wrote:
>> This basically reverts 78e35ea113bed4a5f66225836c887a45696bbf44 to restore old behavior with regards to headless handling on Windows.
>
> Christoph Langer has updated the pull request incrementally with one additional commit since the last revision:
>
> Do not run test/jdk/java/awt/font/JNICheck/FreeTypeScalerJNICheck.java on Windows debug builds
I figured a quick and easy way to reproduce the issue locally, by using this [srvany clone](https://github.com/birkett/srvany-ng) to run a sample swing application as a Windows service.
When running this with a 21.0.3 JDK, the application runs but fails in 21.0.6 with a `java.awt.HeadlessException`, as expected.
When attempting the same thing with an image that includes this PR, the application runs again.
-------------
PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1359#issuecomment-2619534353
More information about the jdk-updates-dev
mailing list