Community
Participate
Working Groups
We have intermittently seen the following ConcurrentModificationException from AbstractDocument in our JUnit tests for years, against multiple major versions of Eclipse, but it looks like no one has filed this defect yet. It appears that AbstractDocument is missing synchronization around access to the fPositions map and the List values it contains. Caused by: java.util.ConcurrentModificationException at java.util.AbstractList$SimpleListIterator.next(AbstractList.java:64) at java.util.AbstractList$SubAbstractList$SubAbstractListIterator.next(AbstractList.java:206) at org.eclipse.jface.text.AbstractDocument.getPositions(AbstractDocument.java:1715) at org.eclipse.jface.text.source.AnnotationModel.getRegionAnnotationIterator(AnnotationModel.java:737) at org.eclipse.jface.text.source.AnnotationModel.getAnnotationIterator(AnnotationModel.java:699) at org.eclipse.jface.text.source.AnnotationModel.getAnnotationIterator(AnnotationModel.java:710) at org.eclipse.jface.text.source.AnnotationRulerColumn.doPaint1(AnnotationRulerColumn.java:718) at org.eclipse.jface.text.source.AnnotationRulerColumn.doubleBufferPaint(AnnotationRulerColumn.java:532) at org.eclipse.jface.text.source.AnnotationRulerColumn.redraw(AnnotationRulerColumn.java:811) at org.eclipse.jface.text.source.AnnotationRulerColumn$6.run(AnnotationRulerColumn.java:798) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
*** This bug has been marked as a duplicate of bug 69289 ***