Name: ksC84122 Date: 12/29/98
JavaDoc for java.lang.Object.clone() states ( Object.java 1.47 98/10/01):
"...The precise meaning of "copy" may depend on the class of the object. The general
intent is that, for any object x, the expression:
x.clone() != x
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)
will be true, this is not an absolute requirement..."
"x.close.getClass() == x.getClass()" needs to be replaced with "x.clone().getClass() == x.getClass()"
"x.close.equals(x)" needs to be replaced with "x.clone().equals(x)"
======================================================================
- duplicates
-
JDK-4192216 Typo in java.lang.Object doc comment
-
- Resolved
-