RFR: 8331189: Implementation of Scoped Values (Third Preview) [v2]

Maurizio Cimadamore mcimadamore at openjdk.org
Thu May 30 14:26:04 UTC 2024


On Wed, 29 May 2024 15:35:41 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> JEP 481 proposes Scoped Values to continue to preview in JDK 23 with one change. The type of the operation parameter of the callWhere method is changed to a new functional interface to avoid having the API throw Exception. With that change, the getWhere (and the corresponding method on Carrier) are no longer needed. The functional interface is not proposed for j.u.function at this time.
>
> Alan Bateman has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains seven additional commits since the last revision:
> 
>  - Merge
>  - Merge
>  - Merge
>  - Set JEP number
>  - Sync up from loom repo
>  - Merge
>  - Initial commit

Changes look good. I like how the new functional interface makes the API seem smaller.

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

Marked as reviewed by mcimadamore (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/19136#pullrequestreview-2088433436


More information about the core-libs-dev mailing list