Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8815

RandomDatum overrides equals(Object) but no hashCode()

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: 2.6.0
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Override equal() but not hashCode() is a violation of the general contract for Object.hashCode will occur, which can have unexpected repercussions when this class is in conjunction with all hash-based collections.

      This test class is used in multiple places, so it may be worth fixing.

        Attachments

        1. HADOOP-8815.patch
          2 kB
          Brandon Li
        2. HADOOP-8815.patch
          2 kB
          Brandon Li

          Activity

            People

            • Assignee:
              brandonli Brandon Li
              Reporter:
              brandonli Brandon Li
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: