RFR: JDK-8042981: Strip type annotations in Types' utility methods

Joe Darcy darcy at openjdk.java.net
Thu Jun 2 01:16:52 UTC 2022


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.

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

Commit messages:
 - JDK-8042981: Strip type annotations in Types' utility methods

Changes: https://git.openjdk.java.net/jdk/pull/8984/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8984&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8042981
  Stats: 193 lines in 4 files changed: 189 ins; 0 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8984.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8984/head:pull/8984

PR: https://git.openjdk.java.net/jdk/pull/8984


More information about the compiler-dev mailing list