On Wed, 2 Apr 2025 11:34:24 GMT, Per Minborg <pminb...@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

Reply via email to