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

Documentation for Retention annotation refers to Target instead of Retention

XMLWordPrintable

    • b03
    • generic
    • generic
    • Not verified

      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".

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: