RFR: 8351565: Implement JEP 502: Stable Values (Preview) [v72]

Viktor Klang vklang at openjdk.org
Wed Apr 23 07:45:10 UTC 2025


On Tue, 22 Apr 2025 15:09:49 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> Implement JEP 502.
>> 
>> The PR passes tier1-tier3 tests.
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Reformat docs

src/java.base/share/classes/java/lang/StableValue.java line 457:

> 455:      * @param content to set
> 456:      * @throws IllegalStateException if a supplier invoked by {@link #orElseSet(Supplier)}
> 457:      *         recursively attempts to set this stable value by calling this method.

@minborg Would this be clearer if it said "recursively attempts to set this stable value by calling this method directly or indirectly." 🤔

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/23972#discussion_r2055447587


More information about the core-libs-dev mailing list