RFR: 8355720: Implement JEP 506: Scoped Values

ExE Boss duke at openjdk.org
Tue Apr 29 07:17:26 UTC 2025


On Mon, 28 Apr 2025 14:32:04 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.

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?

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

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


More information about the compiler-dev mailing list