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

hashCode and equals are not consistent with compareTo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • java
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: