RFR: 8368882: NPE during text drawing on machine with JP locale [v7]
Sergey Nazarkin
snazarki at openjdk.org
Wed Oct 29 19:09:13 UTC 2025
> There is a reproducible bug in symbol rendering on Windows machines with [particular](https://github.com/openjdk/jdk/blob/9d71af108ea2cc3682607527246d60a19fd820ba/src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsEnv.cpp#L244) default locales. This changeset fixes the deferred font initialisation request, which now skips the last font in the list.
>
> The test (attached to the jira) was performed on a Windows 11 machine with the Japanese locale set as the default. Without the fix, it fails with an NPE. With the fix it displays a window showing glyphs drawn by all the fonts accessible from the Java application.
Sergey Nazarkin has updated the pull request incrementally with one additional commit since the last revision:
Remove test
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/27551/files
- new: https://git.openjdk.org/jdk/pull/27551/files/57a1bcc7..af3eb2f8
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=27551&range=06
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=27551&range=05-06
Stats: 133 lines in 2 files changed: 0 ins; 133 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/27551.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27551/head:pull/27551
PR: https://git.openjdk.org/jdk/pull/27551
More information about the client-libs-dev
mailing list