[jdk17u-dev] RFR: 8225377: type annotations are not visible to javac plugins across compilation boundaries

Liam Miller-Cushon cushon at openjdk.org
Tue Oct 28 12:03:55 UTC 2025


[JDK-8341779](https://bugs.openjdk.org/browse/JDK-8341779) is a redo of the backport of [JDK-8323093](https://bugs.openjdk.org/browse/JDK-8323093), see also discussion in CSR [JDK-8346471](https://bugs.openjdk.org/browse/JDK-8346471).

JDK-8341779 was backported to JDK 21u and released in 21.0.8, as discussed in the CSR this PR proposes integrating it into a future 17u release now that 21.0.8 has been released.

Similar to [JDK-8360406](https://bugs.openjdk.org/browse/JDK-8360406) for 21u, a future backport will disable this logic for 17u by default, and optionally allow the fix to be enabled with `-XDaddTypeAnnotationsToSymbol`.

-------------

Commit messages:
 - Backport de6667cf11aa59d1bab78ae5fb235ea0b901d5c4

Changes: https://git.openjdk.org/jdk17u-dev/pull/4124/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=4124&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8225377
  Stats: 303 lines in 2 files changed: 302 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/4124.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/4124/head:pull/4124

PR: https://git.openjdk.org/jdk17u-dev/pull/4124


More information about the jdk-updates-dev mailing list