RFR: 8355720: Implement JEP 506: Scoped Values
Chen Liang
liach at openjdk.org
Tue Apr 29 07:17:26 UTC 2025
On Mon, 28 Apr 2025 17:15:34 GMT, ExE Boss <duke at openjdk.org> wrote:
>> Propose to finalize scoped values.
>> The only functional change is that the orElse() method no longer accepts a null argument.
>
> src/java.base/share/classes/java/lang/ScopedValue.java line 614:
>
>> 612: */
>> 613: public T orElse(T other) {
>> 614: Objects.requireNonNull(other);
>
> Why was this change made?
> The only functional change is that the orElse() method no longer accepts a null argument.
See https://mail.openjdk.org/pipermail/loom-dev/2025-April/007470.html for some history.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24923#discussion_r2064142621
More information about the compiler-dev
mailing list