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

Typo in java.lang.Object doc comment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.2
    • 1.2.0
    • docs
    • None
    • 1.2.2
    • generic, sparc
    • generic, solaris_2.5

      On http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html,

      In the clone() method detail, the word "x.close" should be "x.clone()"
      Notice both the misspelling of "clone" but also the missing parentheses.

      -----------
      Date: Sun, 22 Nov 1998 08:55:21 GMT
      From: <###@###.###>

      The line started with "protected Object clone()
                      throws CloneNotSupportedException"

       has some mistypes, I think, which are:

       x.close.getClass() == x.getClass()

       x.close.equals(x)

       These lines are changed to with clone():

       x.clone().getClass() == x.getClass()
       x.clone().equalsx(x)

       I can't understand x.close.

       regards
                     Young-Je

            asommere Alan Sommerer (Inactive)
            dkramersunw Douglas Kramer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: