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

Mistake in the Annotations documentation page

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 6u19
    • Component/s: docs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      revision
    • CPU:
      x86
    • OS:
      windows_xp
    • Verification:
      Verified

      Description

      A DESCRIPTION OF THE PROBLEM :
      The annotation example on the page is incorrect. There is an extra semi-colon after the "String date()" declaration.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      /**
       * Describes the Request-For-Enhancement(RFE) that led
       * to the presence of the annotated API element.
       */
      public @interface RequestForEnhancement {
          int id();
          String synopsis();
          String engineer() default "[unassigned]";
          String date() default "[unimplemented]";
      }
      ACTUAL -
      /**
       * Describes the Request-For-Enhancement(RFE) that led
       * to the presence of the annotated API element.
       */
      public @interface RequestForEnhancement {
          int id();
          String synopsis();
          String engineer() default "[unassigned]";
          String date(); default "[unimplemented]";
      }

      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/j2se/1.5.0/docs/guide/language/annotations.html
      ###@###.### 2005-05-16 21:03:23 GMT
      This seems to have been fixed in 6 and 7 docs.
      http://java.sun.com/javase/6/docs/technotes/guides/language/annotations.html

        Attachments

          Activity

            People

            • Assignee:
              skannan Sowmya Kannan (Inactive)
              Reporter:
              gmanwanisunw Girish Manwani (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: