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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b119
    • Verification:
      Verified

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              jfranck Joel Borggrén-Franck
              Reporter:
              abuckley Alex Buckley
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: