Project: JDT
Bug 47617 Error during Java AST creation.
Reported: 2003-11-27 06:42:26 | Status: resolved fixed

I am using M5 under Sun JDK 1.4.2_02. I got the following error while opening my workspace. It happened while the automatic startup refresh was in progress. The log entry is attached. !SESSION Nov 27, 2003 06:13:53.142 -------------------------------------------- - java.version=1.4.2 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 -data e:\ThoughtWorkspace -showlocation -install file:E:/Eclipse-M5-3.0/eclipse/ !ENTRY org.eclipse.core.runtime 4 2 Nov 27, 2003 06:13:53.142 !MESSAGE An internal error occurred during: "Java AST creation". !STACK 0 java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification (AbstractList.java:448) at java.util.AbstractList$Itr.next(AbstractList.java:419) at org.eclipse.jdt.internal.ui.javaeditor.filebuffers.CompilationUnitDocumentProvi der2$CompilationUnitAnnotationModel.endReporting (CompilationUnitDocumentProvider2.java:468) at org.eclipse.jdt.internal.core.JavaModelManager$PerWorkingCopyInfo.endReporting (JavaModelManager.java:516) at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure (CompilationUnit.java:143) at org.eclipse.jdt.internal.core.Openable.generateInfos (Openable.java:200) at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed (JavaElement.java:487) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:279) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:265) at org.eclipse.jdt.internal.core.Openable.getBuffer(Openable.java:227) at org.eclipse.jdt.internal.core.CompilationUnit.getSource (CompilationUnit.java:756) at org.eclipse.jdt.core.dom.AST.parseCompilationUnit(AST.java:330) at org.eclipse.jdt.core.dom.AST.parseCompilationUnit(AST.java:247) at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartLis tenerGroup.computeAST(SelectionListenerWithASTManager.java:106) at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartLis tenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:116) at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$1.run (SelectionListenerWithASTManager.java:92) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:62)

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/SelectionListenerWithASTManager.java