In the class java.test.CharSet equals() method is overriden but hashCode() from java.lang.Object is used.
Although, this is not a public class, If CharSet objects are used for hashing in the internal implementation this could be a problem.
Note: This bug was flagged by a program that checks for programming
errors mentioned in "Effective Java" along with other checks.
Although, this is not a public class, If CharSet objects are used for hashing in the internal implementation this could be a problem.
Note: This bug was flagged by a program that checks for programming
errors mentioned in "Effective Java" along with other checks.
- duplicates
-
JDK-4634391 java.text.CharSet doesn't respect contract for equals and hashCode
-
- Closed
-