Uploaded image for project: 'Avro'
  1. Avro
  2. AVRO-182

hashCode and equals are not consistent with compareTo

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: java
    • Labels:
      None

      Description

      Java's specific and generic APIs implement compareTo according to the schema, where some fields might be ignored. To be consistent, fields that are ignored when comparing for ordering should also be ignored when comparing for equality and for computing hashCodes.

        Attachments

        1. AVRO-182.patch
          7 kB
          Doug Cutting
        2. AVRO-182.patch
          8 kB
          Doug Cutting
        3. AVRO-182.patch
          13 kB
          Doug Cutting
        4. AVRO-182.patch
          14 kB
          Doug Cutting

          Activity

            People

            • Assignee:
              cutting Doug Cutting
              Reporter:
              cutting Doug Cutting
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: