Bug 67187 [implementation] Concurrent modification of CompilationUnitDocumentProvider's ReverseMap
Was just scrolling through a Java file and got a popup with the following info: Java AST creation (Error: An internal error occurred during: "Java AST creation".) An internal error occurred during: "Java AST creation". java.lang.IndexOutOfBoundsException: Index: 62, Size: 60 java.util.ArrayList.RangeCheck(ArrayList.java:507) java.util.ArrayList.get(ArrayList.java:324) org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$ReverseM ap.get(CompilationUnitDocumentProvider.java:325) org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$Compilat ionUnitAnnotationModel.addAnnotation(CompilationUnitDocumentProvider.java:665) org.eclipse.jface.text.source.AnnotationModel.addAnnotation (AnnotationModel.java:163) org.eclipse.jdt.internal.ui.text.correction.QuickAssistLightBulbUpdater.calcula teLightBulb(QuickAssistLightBulbUpdater.java:233) org.eclipse.jdt.internal.ui.text.correction.QuickAssistLightBulbUpdater.doSelec tionChanged(QuickAssistLightBulbUpdater.java:221) org.eclipse.jdt.internal.ui.text.correction.QuickAssistLightBulbUpdater.access$ 0(QuickAssistLightBulbUpdater.java:204) org.eclipse.jdt.internal.ui.text.correction.QuickAssistLightBulbUpdater$1.selec tionChanged(QuickAssistLightBulbUpdater.java:128) org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartLis tenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:164) org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$3.run (SelectionListenerWithASTManager.java:136) org.eclipse.core.internal.jobs.Worker.run(Worker.java:66) Wasn't doing anything remarkable at the time - certainly nothing that I would expect would induce this...
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
} else if (IProblem.Task == fProblem.getID()) {
					setType(JavaMarkerAnnotation.TASK_ANNOTATION_TYPE);
					fLayer= TASK_LAYER;
				} else if (fProblem.isWarning()) {
					setType(JavaMarkerAnnotation.WARNING_ANNOTATION_TYPE);
					fLayer= WARNING_LAYER;
				} else if (fProblem.isError()) {
					setType(JavaMarkerAnnotation.ERROR_ANNOTATION_TYPE);
					fLayer= ERROR_LAYER;
				} else {
					setType(JavaMarkerAnnotation.INFO_ANNOTATION_TYPE);
					fLayer= INFO_LAYER;
				}
			}
			
			/*
			 * @see org.eclipse.jface.text.source.IAnnotationPresentation#getLayer()
			 */
			public int getLayer() {
				return fLayer;
			}
			
			private void initializeImages() {
				
				if (!fQuickFixImagesInitialized) {
					if (isProblem() && indicateQuixFixableProblems() && JavaCorrectionProcessor.hasCorrections(this)) { 
						if (!fgQuickFixImagesInitialized) {
							fgQuickFixImage= JavaPluginImages.get(JavaPluginImages.IMG_OBJS_FIXABLE_PROBLEM);
							fgQuickFixErrorImage= JavaPluginImages.get(JavaPluginImages.IMG_OBJS_FIXABLE_ERROR);
							fgQuickFixImagesInitialized= true;