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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2
    • 3.2.2, 4.0
    • Map
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: