#273 ConcurrentModification exception with external modifications

v1.0_(example)
open
nobody
None
5
2013-08-11
2013-08-11
VaughanB
No

I often see ConcurrentModification exceptions when I'm switching git branches in projects...ie. external file changes are occuring, or even files being removed. For example:

java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:782)
at java.util.ArrayList$Itr.next(ArrayList.java:754)
at net.sf.sveditor.core.scanner.SVFileTreeMacroProvider.collectThisFileMacros(SVFileTreeMacroProvider.java:215)
at net.sf.sveditor.core.scanner.SVFileTreeMacroProvider.collectThisFileMacros(SVFileTreeMacroProvider.java:267)
at net.sf.sveditor.core.scanner.SVFileTreeMacroProvider.collectThisFileMacros(SVFileTreeMacroProvider.java:207)
at net.sf.sveditor.core.scanner.SVFileTreeMacroProvider.findMacro(SVFileTreeMacroProvider.java:86)
at net.sf.sveditor.core.scanner.SVPreProcDefineProvider.isDefined(SVPreProcDefineProvider.java:81)
at net.sf.sveditor.core.preproc.SVPreProcessor.handle_preproc_directive(SVPreProcessor.java:371)
at net.sf.sveditor.core.preproc.SVPreProcessor.preprocess(SVPreProcessor.java:135)
at net.sf.sveditor.core.parser.ParserSVDBFileFactory.parse(ParserSVDBFileFactory.java:585)
at net.sf.sveditor.core.db.index.old.AbstractSVDBIndex.parse(AbstractSVDBIndex.java:1964)
at net.sf.sveditor.core.db.index.SVDBIndexCollection.parse(SVDBIndexCollection.java:513)
at net.sf.sveditor.ui.editor.SVEditor$UpdateSVDBFileJob.run(SVEditor.java:253)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

Discussion