commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <>
Subject [jira] [Commented] (COLLECTIONS-661) Intermittent test failures in Windows for HashSetValuedHashMap
Date Tue, 03 Oct 2017 18:38:01 GMT


Gary Gregory commented on COLLECTIONS-661:

Could this be related to this note in {{Object.hashCode(Object)}}:
     * <li>It is <em>not</em> required that if two objects are unequal
     *     according to the {@link java.lang.Object#equals(java.lang.Object)}
     *     method, then calling the {@code hashCode} method on each of the
     *     two objects must produce distinct integer results.  However, the
     *     programmer should be aware that producing distinct integer results
     *     for unequal objects may improve the performance of hash tables.

> Intermittent test failures in Windows for HashSetValuedHashMap
> --------------------------------------------------------------
>                 Key: COLLECTIONS-661
>                 URL:
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: Map
>    Affects Versions: 4.1
>            Reporter: Bruno P. Kinoshita
>            Assignee: Bruno P. Kinoshita
>             Fix For: 4.2
> The collection HashSetValuedHashMap was added in 4.1. On Windows, test failures are not
so common on JVM 8. But on Linux they are harder to happen (but still do [1], [2]).
> When using Windows and JVM 8, running tests on Eclipse, or Maven fail. But debugging
on Windows with Eclipse sometimes work. Indicating it may be due to a concurrency issue, where
debugging adds some extra time hiding the real issue.
> I have a few ideas of where/why it could be happening, but am without a Windows box for
a few days as I'm travelling. I'm reading the codebase in the meantime, but if anybody feels
like working on it, feel free to chime in and suggest a fix/patch.
> [1]
> [2]

This message was sent by Atlassian JIRA

View raw message