Skip to content

8335927: Revisit AnnotationConstantValueEntry and AnnotationValue.OfConstant #20176

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

Closed
wants to merge 5 commits into from

Conversation

liach
Copy link
Member

@liach liach commented Jul 14, 2024

Remove AnnotationConstantValueEntry and AnnotationValue.OfConstant.

This is a relic of the old model from openjdk/jdk-sandbox@bb7e294. In addition, this is bug-prone: the byte, short, char, and boolean constants use the int entry, and getting the ConstantDesc for them will return an Integer, which cannot be inversed back into the respective annotation values via AnnotationValue.of(Object) factory.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Change requires CSR request JDK-8336353 to be approved
  • Commit message must refer to an issue

Issues

  • JDK-8335927: Revisit AnnotationConstantValueEntry and AnnotationValue.OfConstant (Enhancement - P4)
  • JDK-8336353: Remove AnnotationConstantValueEntry and AnnotationValue.OfConstant (CSR)

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 20176

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

Using diff file

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

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 14, 2024

👋 Welcome back liach! 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 Jul 14, 2024

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

@openjdk openjdk bot added csr Pull request needs approved CSR before integration rfr Pull request is ready for review labels Jul 14, 2024
@openjdk
Copy link

openjdk bot commented Jul 14, 2024

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

  • compiler
  • core-libs

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 core-libs core-libs-dev@openjdk.org compiler compiler-dev@openjdk.org labels Jul 14, 2024
@mlbridge
Copy link

mlbridge bot commented Jul 14, 2024

Webrevs

@liach liach closed this Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler compiler-dev@openjdk.org core-libs core-libs-dev@openjdk.org csr Pull request needs approved CSR before integration rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

1 participant