Integrated: 8368882: NPE during text drawing on machine with JP locale

Sergey Nazarkin snazarki at openjdk.org
Mon Nov 3 12:59:22 UTC 2025


On Mon, 29 Sep 2025 16:15:45 GMT, Sergey Nazarkin <snazarki at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 4520983e
Author:    Sergey Nazarkin <snazarki at openjdk.org>
Committer: Dmitry Cherepanov <dcherepanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/4520983e8e5fcfb22e04508d50676df6831fa636
Stats:     4 lines in 1 file changed: 0 ins; 0 del; 4 mod

8368882: NPE during text drawing on machine with JP locale

Reviewed-by: serb, prr, psadhukhan

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

PR: https://git.openjdk.org/jdk/pull/27551


More information about the client-libs-dev mailing list