RFR: 8355022: Implement JEP 506: Scoped Values [v2]

Alan Bateman alanb at openjdk.org
Tue Apr 29 07:46:50 UTC 2025


On Tue, 29 Apr 2025 07:41:28 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:
> 
>   ScopedValue::orElse() does not accept null as an argument.

src/java.base/share/classes/java/lang/ScopedValue.java line 314:

> 312:      * @since 21
> 313:      */
> 314:     @PreviewFeature(feature = PreviewFeature.Feature.SCOPED_VALUES)

The @since need to be updated for all APIs that are proposed to be permanent. This means that Carrier and CallableOp need their @since updated.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24923#discussion_r2065716300


More information about the compiler-dev mailing list