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

Clarify javadoc for j.l.a.Target and j.l.a.ElementType

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • None
    • core-libs
    • b119
    • Verified

      JSR 308 introduces new enum constants in j.l.a.ElementType and redefines the applicability of an annotation type which has no @Target meta-annotation. These changes have been in the JSR 308 design document and in JDK8 javac for years.

      However, it was difficult to precisely specify the changes in the javadoc for java.lang.annotation without accompanying JLS text to provide context. That text is now available, so the javadoc for ElementType and Target should be modified in line with sections 9.6.3.a and 9.6.3.b in http://cr.openjdk.java.net/~abuckley/308.pdf.

            jfranck Joel Borggrén-Franck (Inactive)
            abuckley Alex Buckley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: