<i18n dev> RFR: 8357690: Add @Stable and final to java.lang.CharacterDataLatin1 and other CharacterData classes
Chen Liang
liach at openjdk.org
Sun May 25 00:08:32 UTC 2025
On Sat, 24 May 2025 10:00:56 GMT, Shaojin Wen <swen 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[]`?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25430#discussion_r2106007546
More information about the i18n-dev
mailing list