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

Type annotations on enum constants not stored correctly

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8
    • Fix Version/s: tbd_minor
    • Component/s: tools

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              wmdietl Werner Dietl
              Reporter:
              wmdietl Werner Dietl
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: