Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4770286

java.text.CharSet: equals() overriden but not hashCode()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.2
    • core-libs
    • None
    • generic
    • generic

      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.

            nlindenbsunw Norbert Lindenberg (Inactive)
            jhangalsunw Jayalaxmi Hangal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: