RFR: 8351565: Implement JEP 502: Stable Values (Preview) [v25]
Maurizio Cimadamore
mcimadamore at openjdk.org
Wed Apr 2 11:40:07 UTC 2025
On Wed, 2 Apr 2025 11:34:24 GMT, Per Minborg <pminborg at openjdk.org> wrote:
>> Now that we have removed the VM-specific handling of fields declared as `StableValue`, this is true. I will take a look at improving the wording.
>
> I've used `static` fields now to get out of the muddy waters of trusted final fields, records etc.
I didn't mean to say "this is not true, so use a `static final` instead". What I meant was more "let's not dive into VM-specific details now" (see my other comment on the topic), and just focus on semantics instead. Then let's put all the constant-folding related stuff somewhere else. I liked using non-static final fields!
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23972#discussion_r2024646178
More information about the core-libs-dev
mailing list