Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ConcurrentModificationException in saved diagram index #1612
A ConcurrentModificationException can occur when opening a diagram using the context menu.
Several code reviews have been conducted. So far, the only plausible explanation so far is that SavedDiagramIndexInvalidator, a resource change listener, is being called while fetching information about the diagrams. Adjustments to the saved diagram index is protected by synchronized blocks but it appears that the invalidator is being called by the same thread. Although the issue hasn't been reliably reproduced, it has been confirmed that the change listeners will be notified in the running thread under certain circumstances. The theory is that while walking the workspace tree, Eclipse determined that something has changed and sends out notifications.