directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DIRAPI-279) We are using hashcode over a set in some tests, this is not reliable
Date Wed, 23 Mar 2016 15:40:25 GMT
Emmanuel Lecharny created DIRAPI-279:
----------------------------------------

             Summary: We are using hashcode over a set in some tests, this is not reliable
                 Key: DIRAPI-279
                 URL: https://issues.apache.org/jira/browse/DIRAPI-279
             Project: Directory Client API
          Issue Type: Bug
    Affects Versions: 1.0.0-M33
            Reporter: Emmanuel Lecharny
             Fix For: 1.0.0-M34


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message