RFR: 8341903: Implementation of Scoped Values (Fourth Preview) [v2]

Alan Bateman alanb at openjdk.org
Thu Oct 10 17:04:15 UTC 2024


On Thu, 10 Oct 2024 16:37:24 GMT, Andrew Haley <aph at openjdk.org> wrote:

>> The fourth preview of scoped values.
>
> Andrew Haley has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix javadoc

@theRealAph The update to src/java.base/share/classes/jdk/internal/javac/PreviewFeature.java needs to be included too. Also test/jdk/jdk/internal/misc/ThreadFlock/WithScopedValue.java is updated in the loom repo, need to include that change too.

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

> 161:  *         // @link substring="open" target="StructuredTaskScope#open()" :
> 162:  *         try (var scope = StructuredTaskScope.open()) {
> 163:  *

You'll need to revert this line as that is the updated STS API so will be update with its next JEP.

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

PR Comment: https://git.openjdk.org/jdk/pull/21456#issuecomment-2405621865
PR Review Comment: https://git.openjdk.org/jdk/pull/21456#discussion_r1795812628


More information about the core-libs-dev mailing list