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 23:40:56 GMT, Shaojin Wen <swen at openjdk.org> wrote:
>> 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.
Reasonable. These generated classes have a lot of code improvement opportunities that do not affect program semantics. We should handle those in a dedicated RFE.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25430#discussion_r2106038820
More information about the core-libs-dev
mailing list