-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.1
-
None
-
generic
-
generic
The class java.awt.geom.Area overrides equals with class name as a signature.
Hence it does not override Object equals properly (reference: "Effective Java" Item #7)
Note: This bug is flagged by a program that checks for programming
errors mentioned in "Effective Java" along with other checks.
The classes below needs to be considered as well:
java.awt.DisplayMode
java.awt.font.GlyphVector
The class below overrides equals() but not hashCode():
java.awt.Font$FontLineMetrics
Hence it does not override Object equals properly (reference: "Effective Java" Item #7)
Note: This bug is flagged by a program that checks for programming
errors mentioned in "Effective Java" along with other checks.
The classes below needs to be considered as well:
java.awt.DisplayMode
java.awt.font.GlyphVector
The class below overrides equals() but not hashCode():
java.awt.Font$FontLineMetrics
- duplicates
-
JDK-4634383 JDK code doesn't respect contract for equals and hashCode
-
- Resolved
-