[jdk17] Integrated: 8266036: class file for sun.misc.Contended not found
Jan Lahoda
jlahoda at openjdk.java.net
Wed Jul 7 09:52:59 UTC 2021
On Fri, 11 Jun 2021 13:09:55 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> [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
This pull request has now been integrated.
Changeset: 7fcd5ca0
Author: Jan Lahoda <jlahoda at openjdk.org>
URL: https://git.openjdk.java.net/jdk17/commit/7fcd5ca0258b1dc6c34c98ced177ee4dc7945f26
Stats: 325 lines in 15 files changed: 215 ins; 16 del; 94 mod
8266036: class file for sun.misc.Contended not found
8258421: (jdeprscan) tools/jdeprscan/tests/jdk/jdeprscan/TestRelease.java failed with "error: cannot access jdk.internal.ValueBased"
Reviewed-by: darcy
-------------
PR: https://git.openjdk.java.net/jdk17/pull/27
More information about the compiler-dev
mailing list