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

AbstractMultimap susceptible to size invalidation via collection iterators

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 5.4.1.Final
    • Common
    • None

      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());
      

              Unassigned Unassigned
              mbenson_jira Matt Benson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: