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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: