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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 6
    • core-libs

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: