[jdk17] RFR: 8266036: class file for sun.misc.Contended not found
Jan Lahoda
jlahoda at openjdk.java.net
Fri Jun 11 13:23:13 UTC 2021
[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
-------------
Commit messages:
- 8258421: (jdeprscan) tools/jdeprscan/tests/jdk/jdeprscan/TestRelease.java failed with "error: cannot access jdk.internal.ValueBased"
- Removing a test from the ProblemList.txt
- Merge branch 'master' into JDK-8266036
- 8266035: class file for sun.misc.Contended not found
Changes: https://git.openjdk.java.net/jdk17/pull/27/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk17&pr=27&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8266036
Stats: 308 lines in 12 files changed: 198 ins; 16 del; 94 mod
Patch: https://git.openjdk.java.net/jdk17/pull/27.diff
Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/27/head:pull/27
PR: https://git.openjdk.java.net/jdk17/pull/27
More information about the build-dev
mailing list