Type annotations on enum constants not stored correctly

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 8
    • Component/s: tools

      For a type annotation @TA, the following program:

      enum Test { @TA E }

      should result in a type annotation on the field E.
      Currently, a declaration annotation is generated incorrectly.

      Test case in type-annotations forest:
      langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/Enums.java

            Assignee:
            Vicente Arturo Romero Zaldivar
            Reporter:
            Werner Dietl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: