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)
======================================================================
- duplicates
-
JDK-4189776 doc typo in Object.clone()
-
- Closed
-
-
JDK-4192216 Typo in java.lang.Object doc comment
-
- Resolved
-