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

Alan Bateman alanb at openjdk.org
Fri May 2 12:37:48 UTC 2025


On Fri, 2 May 2025 12:03:35 GMT, ExE Boss <duke at openjdk.org> wrote:

>> 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 1:
> 
>> 1: /*
> 
> It occurred to me that `ScopedValue.NEW_THREAD_BINDINGS` can be made package‑private and used in `Thread`, removing duplication in `Thread.NEW_THREAD_BINDINGS`.
> 
> --------------------------------------------------------------------------------
> 
> This was done this way back when `ScopedValue` lived under the `jdk.incubator.*` package tree.

I think it would be better not change that in this PR, as this PR is about making the feature permanent.

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

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


More information about the core-libs-dev mailing list