The PatternEntry and IntHashtable classes override Object.equals but
not Object.hashCode. This violates the restriction that:
a.equals(b) ==> a.hashCode()==b.hashCode()
As these classes are package-private, there is no immediate danger to external
users, but until the situation is corrected, it's waiting to bite us.
not Object.hashCode. This violates the restriction that:
a.equals(b) ==> a.hashCode()==b.hashCode()
As these classes are package-private, there is no immediate danger to external
users, but until the situation is corrected, it's waiting to bite us.
- duplicates
-
JDK-4245538 java.text.[IntHashtable and PatternEntry] violate Object.hashCode contract
- Closed