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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-M33
    • Fix Version/s: 1.0.0-RC2
    • Labels:
      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.

        Activity

        Show
        elecharny Emmanuel Lecharny added a comment - Fixed with http://svn.apache.org/viewvc?rev=1765410&view=rev and http://svn.apache.org/viewvc?rev=1765411&view=rev

          People

          • Assignee:
            Unassigned
            Reporter:
            elecharny Emmanuel Lecharny
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development