Community
Participate
Working Groups
The iterator used in DefaultOperationHistory.filter(...) is not properly synchronized against comodification, allowing asynchronous modification of the list between obtaining the iterator and entering the following synchronized block. This leads to java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372) at java.util.AbstractList$Itr.next(AbstractList.java:343) at org.eclipse.core.commands.operations.DefaultOperationHistory.filter(DefaultOperationHistory.java:558) at org.eclipse.core.commands.operations.DefaultOperationHistory.getUndoHistory(DefaultOperationHistory.java:843)
Created attachment 183125 [details] synchronizes iterator access
Thanks, Cartsten. This rang a bell and I realized that the same problem (and patch) was reported in bug 323444. Marking this a duplicate and I will get the patch into M5. Sorry for the delay. *** This bug has been marked as a duplicate of bug 323444 ***