<i18n dev> RFR: 8357690: Add @Stable and final to java.lang.CharacterDataLatin1 and other CharacterData classes

Shaojin Wen swen at openjdk.org
Sun May 25 00:08:32 UTC 2025


On Sat, 24 May 2025 23:04:50 GMT, Chen Liang <liach at openjdk.org> wrote:

>> Classes such as java.lang.CharacterDataXXX have multiple static final arrays, which will not be modified. We should add @Stable to provide information to the optimizer.
>
> make/jdk/src/classes/build/tools/generatecharacter/GenerateCharacter.java line 1195:
> 
>> 1193:             result.append("  @Stable static final ");
>> 1194:         result.append(atype);
>> 1195:         result.append(" ").append(name).append("[");
> 
> While you are at it - when Csyntax == false, can we make it print `atype[] name` instead of `atype name[]`?

This will require more changes, and has no benefits other than better coding style.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25430#discussion_r2106030868


More information about the i18n-dev mailing list