Uploaded image for project: 'Directory Client API'
  1. Directory Client API
  2. DIRAPI-279

We are using hashcode over a set in some tests, this is not reliable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0-M33
    • 1.0.0-RC2
    • None

    Description

      The following tests are just working by chance :

      UserClass_NameTest.testHashCodeSymmetric() and UserClass_NameTest.testHashCodeTransitive().

      We are computing two hashcodes on sets which may contain values in a random order, combining the elements'hashCode in this set by using a non-commutative/transitive operation.

      Attachments

        Activity

          People

            Unassigned Unassigned
            elecharny Emmanuel L├ęcharny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: