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

Strip type annotations in Types' utility methods

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 8
    • Fix Version/s: 13
    • Component/s: core-libs

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                darcy Joe Darcy
                Reporter:
                abuckley Alex Buckley
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: