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.
------------- Commit messages: - 8266035: class file for sun.misc.Contended not found Changes: https://git.openjdk.java.net/jdk/pull/4428/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4428&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8266035 Stats: 263 lines in 4 files changed: 167 ins; 7 del; 89 mod Patch: https://git.openjdk.java.net/jdk/pull/4428.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/4428/head:pull/4428 PR: https://git.openjdk.java.net/jdk/pull/4428