RFR: 8355022: Implement JEP 506: Scoped Values [v3]
Alan Bateman
alanb at openjdk.org
Tue Apr 29 07:59:47 UTC 2025
On Tue, 29 Apr 2025 07:54:23 GMT, Andrew Haley <aph at openjdk.org> wrote:
>> Propose to finalize scoped values.
>> The only functional change is that the orElse() method no longer accepts a null argument.
>
> Andrew Haley has updated the pull request incrementally with one additional commit since the last revision:
>
> Since when?
src/java.base/share/classes/java/lang/ScopedValue.java line 412:
> 410: * @throws StructureViolationException if a structure violation is detected
> 411: * @throws X if {@code op} completes with an exception
> 412: * @since 25
The `@since` on the method be dropped once Carrier is bumped to 25.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24923#discussion_r2065735184
More information about the compiler-dev
mailing list