RFR: JDK-8281238: TYPE_USE annotations not printed in correct position in toString output
Vicente Romero
vromero at openjdk.java.net
Fri Feb 11 21:18:10 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.)
looks good
-------------
Marked as reviewed by vromero (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/7411
More information about the compiler-dev
mailing list