Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8341903: Implementation of Scoped Values (Fourth Preview) #21456

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

theRealAph
Copy link
Contributor

@theRealAph theRealAph commented Oct 10, 2024

The fourth preview of scoped values.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change requires a JEP request to be targeted
  • Change requires a CSR request matching fixVersion 24 to be approved (needs to be created)

Issues

  • JDK-8341903: Implementation of Scoped Values (Fourth Preview) (Enhancement - P4)
  • JDK-8338456: JEP 487: Scoped Values (Fourth Preview) (JEP)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/21456/head:pull/21456
$ git checkout pull/21456

Update a local copy of the PR:
$ git checkout pull/21456
$ git pull https://git.openjdk.org/jdk.git pull/21456/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 21456

View PR using the GUI difftool:
$ git pr show -t 21456

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/21456.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 10, 2024

👋 Welcome back aph! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Oct 10, 2024

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot added the rfr Pull request is ready for review label Oct 10, 2024
@openjdk
Copy link

openjdk bot commented Oct 10, 2024

@theRealAph The following labels will be automatically applied to this pull request:

  • core-libs
  • security

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added security security-dev@openjdk.org core-libs core-libs-dev@openjdk.org labels Oct 10, 2024
@mlbridge
Copy link

mlbridge bot commented Oct 10, 2024

Webrevs

@AlanBateman
Copy link
Contributor

AlanBateman commented Oct 10, 2024

@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.

* try (var scope = new StructuredTaskScope<String>()) {
* ScopedValue.where(NAME, "duke").run(() -> {
* // @link substring="open" target="StructuredTaskScope#open()" :
* try (var scope = StructuredTaskScope.open()) {
*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to run jdk:tier1 and jdk:tier2 as that will run the tests that use this API.

@wangweij
Copy link
Contributor

The one line change in Subject.java is fine.

/label remove security

@openjdk openjdk bot removed the security security-dev@openjdk.org label Oct 10, 2024
@openjdk
Copy link

openjdk bot commented Oct 10, 2024

@wangweij
The security label was successfully removed.

@AlanBateman
Copy link
Contributor

/csr

@openjdk openjdk bot added the csr Pull request needs approved CSR before integration label Oct 10, 2024
@openjdk
Copy link

openjdk bot commented Oct 10, 2024

@AlanBateman has indicated that a compatibility and specification (CSR) request is needed for this pull request.

@theRealAph please create a CSR request for issue JDK-8341903 with the correct fix version. This pull request cannot be integrated until the CSR request is approved.

@liach
Copy link
Member

liach commented Oct 11, 2024

/jep jep-487

@openjdk
Copy link

openjdk bot commented Oct 11, 2024

@liach
This pull request will not be integrated until the JEP-487 has been targeted.

@openjdk openjdk bot added the jep label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-libs core-libs-dev@openjdk.org csr Pull request needs approved CSR before integration jep rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

4 participants