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

javac should issue a warning for overriding equals without hashCode

XMLWordPrintable

    • b82
    • generic
    • generic
    • Verified

      As discussed in "Effective Java" a common source of bugs is for a class to override equals without overriding hashCode. To reduce the incidence of this, javac could issue a warning when this occured.

            vromero Vicente Arturo Romero Zaldivar
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: