-
Notifications
You must be signed in to change notification settings - Fork 148
8266036: class file for sun.misc.Contended not found #27
Conversation
…java failed with "error: cannot access jdk.internal.ValueBased"
👋 Welcome back jlahoda! A progress list of the required criteria for merging this PR into |
@lahodaj |
Webrevs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering how better to document that the addition of new JDK-specific annotation types might require more updates to this list.
Perhaps adding notes in the existing annotation types would help, as people might cut-and-paste the old types when creating new ones. That may be more effective than adding package-level documentation on the internal packages.
@lahodaj This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 73 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
@jddarcy thanks for the comment, and sorry for delays. I've updated the annotation with a note on the special annotations, as suggested. Does the text make sense? Thanks! |
/integrate |
Going to push as commit 7fcd5ca.
Your commit was automatically rebased without conflicts. |
[this is an improved version of openjdk/jdk PR:
https://github.com/openjdk/jdk/pull/4428
]
The ct.sym may contain classfiles referring to annotations that are not present in ct.sym (liek JDK's internal annotation sun.misc.Contended). If javac will try to load them (while discovering annotations for the purpose of detecting which annotation processors should be run), an error will be produced (please see the issue). The proposal is to strip annotations that are not present in ct.sym when generating ct.sym.
As noted by @jddarcy, we also need a special handling of ValueBased, which this patch should do, so it also solves https://bugs.openjdk.java.net/browse/JDK-8258421
/issue JDK-8258421
Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk17 pull/27/head:pull/27
$ git checkout pull/27
Update a local copy of the PR:
$ git checkout pull/27
$ git pull https://git.openjdk.java.net/jdk17 pull/27/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 27
View PR using the GUI difftool:
$ git pr show -t 27
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk17/pull/27.diff