Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4919

IntsRef, BytesRef and CharsRef return incorrect hashcode when filled with 0

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 4.2
    • 4.3
    • core/other
    • None
    • New

    Description

      IntsRef, BytesRef and CharsRef implementation do not follow the java Arrays.hashCode implementation, and return incorrect hashcode when filled with 0.
      For example, an IntsRef with { 0 } will return the same hashcode than an IntsRef with { 0, 0 }.

      Attachments

        1. LUCENE-4919.patch
          4 kB
          Renaud Delbru

        Activity

          People

            Unassigned Unassigned
            renaud.delbru Renaud Delbru
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: