RFR: 8366178: Implement JEP 526: Lazy Constants (Second Preview) [v25]
Per Minborg
pminborg at openjdk.org
Sun Nov 16 09:40:19 UTC 2025
On Fri, 14 Nov 2025 09:45:39 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> Per Minborg has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 112 commits:
>>
>> - Clarify toString spec
>> - Merge branch 'master' into lazy-constants
>> - Add @AOTSafeClassInitializer
>> - Address comments in PR
>> - Fix merge mistake
>> - Merge master
>> - Rework toString implementations
>> - Update after doc comments
>> - Merge branch 'master' into lazy-constants
>> - Revert the AbstractMap.keySet @Stable annotation
>> - ... and 102 more: https://git.openjdk.org/jdk/compare/76a1109d...1f439bec
>
> src/java.base/share/classes/java/lang/LazyConstant.java line 280:
>
>> 278: * {@code computingFunction} at least until initialization completes successfully.
>> 279: * <p>
>> 280: * If the provided computing function is already an instance of
>
> Not sure how I feel about that -- it seems to soft-break equals...
Let's think about this once more.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27605#discussion_r2531779955
More information about the core-libs-dev
mailing list