commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cyrille Artho (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (COLLECTIONS-512) equals/hashCode mismatch
Date Thu, 10 Apr 2014 04:28:15 GMT

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

Cyrille Artho updated COLLECTIONS-512:
--------------------------------------

    Attachment: BugReport1_1.java

We found another test case that does not seem to overlap with the existing tests. It shows
the same issue but uses a different sequence with (mostly) different classes.

> equals/hashCode mismatch
> ------------------------
>
>                 Key: COLLECTIONS-512
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-512
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: Collection, Comparator
>    Affects Versions: 4.0
>         Environment: Mac OS 10.9, Java 6 and Java 7
>            Reporter: Cyrille Artho
>         Attachments: BugReport1.java, BugReport1_1.java
>
>
> We used Randoop on the collection classes, which found several test cases where two objects
are equal but their hash code differs.
> I will attach a file containing two test cases that are different; the other tests seem
to be longer versions showing the same issue.



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

Mime
View raw message