Final means final - JDK 26

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Final means final - JDK 26

hharrison
Administrator
https://openjdk.org/jeps/500

Honestly haven't looked at the implementation yet, but was curious if this will have any impact on the current situation generating new warnings?
Reply | Threaded
Open this post in threaded view
|

Re: Final means final - JDK 26

Sven Gothel
Administrator
Thanks for the heads up Harvey.

Out of my head, I am not aware that we try to mutate immutables, systematically.
For the next release I shall add a test run w/ the OpenJDK 26  of course, good call.

JogAmp uses 'static final' fields with same objectives, i.e. allowing the compiler
to modify and optimize code (similar to virtual interface functions),
removing lookups and branches.