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

Annotations on many Language Model elements are not returned

XMLWordPrintable

        There are numerous reports that the Language Model API fails to return the correct mirrors for type parameter declarations, return types, receiver types, and types in extends/implements clauses.

        Here is a report about type parameter declarations: http://mail.openjdk.java.net/pipermail/type-annotations-dev/2014-January/001513.html.

        An Eclipse committer offered the attached test case:

        C:\jtests>C:\work\jdk-8-ea-bin-b123-windows-x64-09_jan_2014\jdk8\jdk1.8.0\bin\javac -Xlint:unchecked -Xlint:deprecation -parameters -cp c:\jtests -processor TestProcessor -s . X.java
        Processing type parameter: TP
        FAILURE::Incorrect annots on type parameter, expected 1 but was 0
        FAILURE::Incorrect annots on type parameter mirror, expected 1 but was 0

              vromero Vicente Arturo Romero Zaldivar
              abuckley Alex Buckley
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: