RFR: JDK-8042981: Strip type annotations in Types' utility methods
Srikanth Adayapalam
sadayapalam at openjdk.org
Fri Jun 24 08:13:54 UTC 2022
On Thu, 2 Jun 2022 01:09:17 GMT, Joe Darcy <darcy at openjdk.org> wrote:
> Early review for JDK-8042981: "Strip type annotations in Types' utility methods". I work more often in the Element world rather than the Type word of the annotation processing APIs.
>
> The type annotations on primitive types are *not* cleared by the existing annotation clearing mechanisms. I suspect Type.Visitor is missing a case for primitive types. Someone with familiarity with javac's type modeling should take a look; thanks.
Also worth observing is there already being several overrides of com.sun.tools.javac.code.Types.MapVisitor#visitType where the idempotent return is unsuitable. So it seems the present problem also should simply override and handle suitably as opposed to introducing a new method.
-------------
PR: https://git.openjdk.org/jdk/pull/8984
More information about the compiler-dev
mailing list