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

doc typo in Object.clone()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • docs
    • generic
    • generic



      Name: diC59631 Date: 11/12/98


      There are two typos in Object.clone() documentation:

      The phrase:
           will be true, and that the expression:
                 x.close.getClass() == x.getClass()
           will be true, but these are not absolute requirements. While it is typically the case that:
                 x.close.equals(x)

      Should read:
           will be true, and that the expression:
                 x.clone().getClass() == x.getClass()
           will be true, but these are not absolute requirements. While it is typically the case that:
                 x.clone().equals(x)
      (Review ID: 42199)
      ======================================================================

            asommere Alan Sommerer (Inactive)
            dindrigo Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: