-
Bug
-
Resolution: Fixed
-
P4
-
1.2.1, 1.4.0
-
None
-
tiger
-
generic
-
generic
The following problem was originally reported in 4634068.
There are a number of classes that do not respect the
implied contract for equals and hashCode. See, for example,
Joshua Bloch's book "Effective Java", items 7-8.
java.awt.font.GlyphVector defines
equals(java.awt.font.GlyphVector) but doesn't redefine
equals(Object)
java.awt.geom.Area defines
equals(java.awt.geom.Area) but doesn't redefine
equals(Object)
java.awt.Font$FontLineMetrics redefines
equals(Object) but not hashCode()
Problems found by applying automatic tools to JDK
libraries. However, manual inspectation of the classes
reveals the same problems.
-- iag@sfbay 2002-02-06
===============================
There are a number of classes that do not respect the
implied contract for equals and hashCode. See, for example,
Joshua Bloch's book "Effective Java", items 7-8.
java.awt.font.GlyphVector defines
equals(java.awt.font.GlyphVector) but doesn't redefine
equals(Object)
java.awt.geom.Area defines
equals(java.awt.geom.Area) but doesn't redefine
equals(Object)
java.awt.Font$FontLineMetrics redefines
equals(Object) but not hashCode()
Problems found by applying automatic tools to JDK
libraries. However, manual inspectation of the classes
reveals the same problems.
-- iag@sfbay 2002-02-06
===============================
- duplicates
-
JDK-4770289 GlyphVector.equals is not overridden properly
- Closed
- relates to
-
JDK-4634068 JDK code doesn't respect contract for equals and hashCode
- Closed