You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Cyrille Artho (JIRA)" <ji...@apache.org> on 2014/04/10 08:37:14 UTC

[jira] [Updated] (PRIMITIVES-17) equals/hashCode mismatch

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

Cyrille Artho updated PRIMITIVES-17:
------------------------------------

    Attachment: Report.java

> equals/hashCode mismatch
> ------------------------
>
>                 Key: PRIMITIVES-17
>                 URL: https://issues.apache.org/jira/browse/PRIMITIVES-17
>             Project: Commons Primitives
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: Mac OS 10.9 with Java 6 or 7
>            Reporter: Cyrille Artho
>         Attachments: Report.java
>
>
> Two automatically generated tests that wrap singleton lists in different ways result in two lists being equal, but having a distinct hash code.
> See the attached two JUnit tests. Both tests show a similar issue.



--
This message was sent by Atlassian JIRA
(v6.2#6252)