[lworld] RFR: 8354728: [lworld] Langtools work to update strict implementation to latest
Chen Liang
liach at openjdk.org
Wed Apr 16 02:44:01 UTC 2025
On Wed, 16 Apr 2025 00:46:50 GMT, Vicente Romero <vromero at openjdk.org> wrote:
>> The updates to the core libraries + langtools for the latest strict field initialization spec https://cr.openjdk.org/~dlsmith/jep401/jep401-20250409/specs/strict-fields-jvms.html is ready.
>>
>> Currently, since there is no VM support, testing is restricted to generation by ClassFile API/javac and inspection through ClassFile API (and javap)
>>
>> Not suitable for integration yet; StrictFinalInstanceFieldsTest requires VM side's support.
>
> src/java.base/share/classes/java/lang/reflect/AccessFlag.java line 391:
>
>> 389: @Override
>> 390: public String toString() {
>> 391: return "STRICT";
>
> so we want the `toString` result to be `STRICT_INIT`?
Yes, the new spec renamed the flag to `ACC_STRICT_INIT`.
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/1432#discussion_r2045899212
More information about the valhalla-dev
mailing list