On Mon, 15 Jun 2026 15:30:52 GMT, Alan Bateman <[email protected]> wrote:
>> src/java.base/share/classes/java/lang/reflect/Field.java line 193:
>>
>>> 191: * <li>final fields declared in a {@linkplain Class#isRecord()
>>> record}</li>
>>> 192: * <li>final fields declared in a {@linkplain Class#isHidden()
>>> hidden class}</li>
>>> 193: * <li>{@linkplain #isStrictInit() strictly-initialized} final
>>> fields</li>
>>
>> The other examples from identity requirements use a preview block, or as in
>> `SwitchBootstraps`, prefixed with "if preview features are enabled, ..."
>
> This is a list of conditions and the "strictly-initialized" will have
> "PREVIEW" superscript. So it's like Field.set which links to value class
> with the "PREVIEW" superscript. I think it looks okay but I agree some
> prefixing with "if preview features" might be a bit clearer.
Fair, we can assume strictly-initialized fields do not exist without preview
features. We can leave it as is and change if CSR review requests so.
-------------
PR Review Comment:
https://git.openjdk.org/valhalla/pull/2548#discussion_r3415194905