Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-261

Flat3Map.remove() does not return the correct value when size <= 3

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.2.2, 4.0
    • Component/s: Map
    • Labels:
      None
    • Environment:

      Windows XP, SUN JDK 1.5.0_06

      Description

      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"

        Attachments

        1. COLLECTIONS-261.patch
          4 kB
          Henri Yandell

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              os111 ori
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: