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

Typo in Javadoc for java.lang.annotation.Target: "MemberType" => "ElementType"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      FULL PRODUCT VERSION :
      java version "1.6.0"
      Java(TM) SE Runtime Environment (build 1.6.0-b105)
      Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)


      ADDITIONAL OS VERSION INFORMATION :
      Linux vmu 2.6.17-11-generic #2 SMP Thu Feb 1 19:52:28 UTC 2007 i686 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      In the Javadoc for java.lang.annotation.Target, this code example

          @Target({})
          public @interface MemberType {
              ...
          }
       
      should be

          @Target({})
          public @interface ElementType {
              ...
          }

      That is, the occurrence of "MemberType" should be "ElementType"


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      View Javadoc for java.lang.annotation.Target


      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Activity

            People

            Assignee:
            darcy Joe Darcy
            Reporter:
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: