Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8042981

Strip type annotations in Types' utility methods

XMLWordPrintable

      In javax.lang.model.util.Types, there are nine methods that process TypeMirror arguments (or wrappers thereof) and produce a TypeMirror in return:

      - asMemberOf
      - capture
      - directSupertypes
      - erasure
      - getArrayType
      - getDeclaredType x2
      - getWildcardType
      - unboxedType

      Per [1], it is desirable to ensure that no type annotations appear in the returned TypeMirror objects (when viewed as AnnotatedConstruct objects). jx.l.m.u.Types should say: "Utility methods for operating on types. Where a method returns a TypeMirror, the TypeMirror represents a type with no type annotations."

      [1] http://mail.openjdk.java.net/pipermail/compiler-dev/2014-May/008756.html

            darcy Joe Darcy
            abuckley Alex Buckley
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: