RFR: 8368882: NPE during text drawing on machine with JP locale [v3]

Prasanta Sadhukhan psadhukhan at openjdk.org
Fri Oct 17 08:24:08 UTC 2025


On Tue, 14 Oct 2025 08:58:24 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.
>
> Sergey Nazarkin has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add EUDC.tte restoration

test/jdk/java/awt/8368882/FallbackFontNPE.sh line 56:

> 54:    Reg DELETE "${reg_eudc_1252}" /va /f
> 55: fi
> 56: Reg import eudc.reg

Dont think we are allowed to push binary files..Cant we check using 
`-Duser.language `or 
`new Locale(ja, JP)`

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27551#discussion_r2438813301


More information about the client-libs-dev mailing list