JDK-4770286 : java.text.CharSet: equals() overriden but not hashCode()
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.text
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2002-10-29
  • Updated: 2002-10-30
  • Resolved: 2002-10-30
Related Reports
Duplicate :  
Description
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.