commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (COLLECTIONS-261) Flat3Map.remove() does not return the correct value when size <= 3
Date Sun, 08 Nov 2015 21:05:11 GMT

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

Thomas Neidhart updated COLLECTIONS-261:
----------------------------------------
    Fix Version/s: 3.2.2

> Flat3Map.remove() does not return the correct value when size <= 3
> ------------------------------------------------------------------
>
>                 Key: COLLECTIONS-261
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-261
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: Map
>    Affects Versions: 3.2
>         Environment: Windows XP, SUN JDK 1.5.0_06
>            Reporter: ori
>             Fix For: 3.2.2, 4.0
>
>         Attachments: COLLECTIONS-261.patch
>
>
>         final Flat3Map m = new Flat3Map();
>         m.put( new Integer( 1 ), new Integer( 1 ) );
>         m.put( new Integer( 0 ), new Integer( 0 ) );
>         System.out.println( m.remove( new Integer( 1 ) ) );
> The above code will print "0" when it should print "1"



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

Mime
View raw message