[jdk17u-dev] Integrated: 8341779: [REDO BACKPORT] type annotations are not visible to javac plugins across compilation boundaries (JDK-8225377)

Liam Miller-Cushon cushon at openjdk.org
Fri Dec 12 11:59:05 UTC 2025


On Tue, 28 Oct 2025 11:57:50 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:

> [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`.
> 
> The patch did not apply cleanly, I resolved one merge conflict due to changes to the internal `TypeMetadata` API for JDK-8303820.

This pull request has now been integrated.

Changeset: 7b541a27
Author:    Liam Miller-Cushon <cushon at openjdk.org>
Committer: Goetz Lindenmaier <goetz at openjdk.org>
URL:       https://git.openjdk.org/jdk17u-dev/commit/7b541a279882fbcf40d180aa825df4a20e8a79c5
Stats:     313 lines in 2 files changed: 312 ins; 0 del; 1 mod

8341779: [REDO BACKPORT] type annotations are not visible to javac plugins across compilation boundaries (JDK-8225377)
8340024: In ClassReader, extract a constant for the superclass supertype_index

Reviewed-by: vromero
Backport-of: de6667cf11aa59d1bab78ae5fb235ea0b901d5c4

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

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


More information about the jdk-updates-dev mailing list