-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.4.0
-
None
-
generic
-
generic
The DisplayMode class defines an equals(DisplayMode) method
instead of equals(Object) to pair with the hashCode() method
which it also defines. This causes any use of the equals/hashCode
constract (Hashtable etc.) to use the equals(Object) inherited
from java.lang.Object which implements instance identity
equality rather than the apparently intended content equality.
instead of equals(Object) to pair with the hashCode() method
which it also defines. This causes any use of the equals/hashCode
constract (Hashtable etc.) to use the equals(Object) inherited
from java.lang.Object which implements instance identity
equality rather than the apparently intended content equality.
- duplicates
-
JDK-4634385 JDK DisplayMode code doesn't respect contract for equals and hashCode
-
- Resolved
-