Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2743

AbstractMultimap susceptible to size invalidation via collection iterators

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 5.4.1.Final
    • Fix Version/s: None
    • Component/s: Common
    • Labels:
      None

      Description

      The collection of values is accessed via #get(key). The following unit test fails:

              assertEquals(0, multimap.size());
              assertTrue(multimap.isEmpty());
              multimap.put(keys[0], values[0]);
              assertEquals(1, multimap.size());
              Iterator<String> iterator = multimap.get(keys[0]).iterator();
              iterator.next();
              iterator.remove();
              assertEquals(0, multimap.size());
              assertTrue(multimap.isEmpty());
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mbenson Matt Benson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: