On Fri, 11 Jun 2021 13:09:55 GMT, Jan Lahoda <[email protected]> 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 <[email protected]>
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

Reply via email to