You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2016/10/18 10:48:58 UTC

[jira] [Resolved] (DIRAPI-279) We are using hashcode over a set in some tests, this is not reliable

     [ https://issues.apache.org/jira/browse/DIRAPI-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny resolved DIRAPI-279.
--------------------------------------
    Resolution: Fixed

Fixed with http://svn.apache.org/viewvc?rev=1765410&view=rev and http://svn.apache.org/viewvc?rev=1765411&view=rev

> 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-RC2
>
>
> 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)