[jdk17u-dev] RFR: 8281238: TYPE_USE annotations not printed in correct position in toString output [v2]
Liam Miller-Cushon
cushon at openjdk.org
Fri Feb 20 12:27:53 UTC 2026
> This backport of [JDK-8281238](https://bugs.openjdk.org/browse/JDK-8281238) fixes a bug in `TypeMirror#toString` output when printing type annotations.
>
> `TypeMirror#toString` is specified to return a string that is "suitable for representing this type in source code". This fix causes type annotations on qualified names to be printed at the correct location, for example `java.lang. at Annotation String` instead of `@Annotation java.lang.String`.
>
> There was a bug in the initial fix for JDK-8281238, follow-on fix [JDK-8284220](https://bugs.openjdk.org/browse/JDK-8284220) is included in this backport.
Liam Miller-Cushon has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
- Merge remote-tracking branch 'origin/master' into JDK-8281238
- Backport 4d30a1e8d1587c63e85950b7a61439b5bf98c689
- Backport 4032fe76dccb6da85927361aee7ceedcdb758e89
-------------
Changes:
- all: https://git.openjdk.org/jdk17u-dev/pull/4242/files
- new: https://git.openjdk.org/jdk17u-dev/pull/4242/files/c4ac9731..b8c1ea7c
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=4242&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=4242&range=00-01
Stats: 17450 lines in 227 files changed: 6352 ins; 3235 del; 7863 mod
Patch: https://git.openjdk.org/jdk17u-dev/pull/4242.diff
Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/4242/head:pull/4242
PR: https://git.openjdk.org/jdk17u-dev/pull/4242
More information about the jdk-updates-dev
mailing list