Integrated: JDK-8281238: TYPE_USE annotations not printed in correct position in toString output
Joe Darcy
darcy at openjdk.java.net
Fri Feb 11 21:56:12 UTC 2022
On Wed, 9 Feb 2022 21:43:13 GMT, Joe Darcy <darcy at openjdk.org> wrote:
> To use a type annotation on a fully qualified type name, the annotations must appear between the package name and the type:
>
> java.lang. @TypeAnnotation String // good
>
> and *not* before the fully qualified name
>
> @TypeAnnotation java.lang.String // bad
>
> This required ordering is not preserved in the toString output of TypeMirrors in annotation processing. This changeset corrects that and updates a few tests that assume the older formatting.
>
> (This listed update to the given toString method is necessary; I don't believe any of the other Type toString methods also need to be updated, but some might need updating too.)
This pull request has now been integrated.
Changeset: 4032fe76
Author: Joe Darcy <darcy at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/4032fe76dccb6da85927361aee7ceedcdb758e89
Stats: 19 lines in 4 files changed: 8 ins; 0 del; 11 mod
8281238: TYPE_USE annotations not printed in correct position in toString output
Reviewed-by: vromero
-------------
PR: https://git.openjdk.java.net/jdk/pull/7411
More information about the compiler-dev
mailing list