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

Sergey Nazarkin snazarki at openjdk.org
Mon Oct 13 15:16:34 UTC 2025


On Thu, 2 Oct 2025 13:10:21 GMT, Sergey Nazarkin <snazarki at openjdk.org> wrote:

>> src/java.desktop/share/classes/sun/font/CompositeFont.java line 117:
>> 
>>> 115:             deferredInitialisation = new boolean[numSlots];
>>> 116:             if (defer) {
>>> 117:                 for (int i=0; i<numSlots-1; i++) {
>> 
>> Do we have any jtreg tests that can reproduce the bug in the JP locale? If not, it would be good to create one based on the test described in the bug report.
>
> The fallback font may have legal issues and installing eudc.ttf on the test machine may be challenging.   I'll try to reproduce the issue using the EN_US locale and an open-source font.

A simplified test has been created; however, it still requires some environment setup and would not fail on non-US (and non-JP, KO, ZH) locales.

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

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


More information about the client-libs-dev mailing list