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

Type annotations on enum constants not stored correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8
    • 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

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

              Created:
              Updated: