Gaetan Pitteloud opened SPR-7557 and commented
The following code throws ConcurrentModificationException:
HttpSession session = new MockHttpSession();
session.setAttribute("k1", "v1");
session.setAttribute("k2", "v2");
for (Enumeration<String> names = session.getAttributeNames(); names.hasMoreElements();) {
session.removeAttribute(names.nextElement());
}
The same code was OK prior Spring 3, and is OK on any web server, with non-mock http session implementation.
Affects: 3.0 M1, 3.0 M2, 3.0 M3, 3.0 M4, 3.0 RC1, 3.0 RC2, 3.0 RC3, 3.0 GA, 3.0.1, 3.0.2, 3.0.3, 3.0.4
Referenced from: commits aac2de9