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

Documentation for Retention annotation refers to Target instead of Retention

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b03
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description

      The documentation for java.lang.annotation.Retention contains this paragraph:

      "A Target meta-annotation has effect only if the meta-annotated type is use directly for annotation. It has no effect if the meta-annotated type is used as a member type in another annotation type."

      It looks as if this was copy/pasted from java.lang.annotation.Target (where it would also make sense) but without changing Target to Retention. The text does not appear in Target today but I'm guessing it did at some time in the past.

      Also, "is use" should be "is used".

        Attachments

          Activity

            People

            Assignee:
            darcy Joe Darcy
            Reporter:
            emcmanus Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: