Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 58407

Summary: IndexOutOfBoundsException from reconciler
Product: [Eclipse Project] JDT Reporter: John Arthorne <john.arthorne>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M9   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description John Arthorne CLA 2004-04-13 23:21:21 EDT
Build: 3.0 M8.

In another bug report (bug 57656), a user reported the following stack trace 
in the java console.  There were no consistent steps to reproduce.  See that 
bug for more info on his setup, VM, etc (nothing unusual that I can see).

java.lang.IndexOutOfBoundsException: Index: 27, Size: 27
        at java.util.ArrayList.RangeCheck(ArrayList.java:507)
        at java.util.ArrayList.get(ArrayList.java:324)
        at 
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$ReverseM
ap.get(CompilationUnitDocumentProvider.java:330)
        at 
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$Compilat
ionUnitAnnotationModel.addAnnotation(CompilationUnitDocumentProvider.java:661)
        at org.eclipse.jface.text.source.AnnotationModel.replaceAnnotations
(AnnotationModel.java:190)
        at org.eclipse.jface.text.source.AnnotationModel.replaceAnnotations
(AnnotationModel.java:160)
        at 
org.eclipse.jdt.internal.ui.javaeditor.OverrideIndicatorManager.updat
eAnnotations(OverrideIndicatorManager.java:227)
        at 
org.eclipse.jdt.internal.ui.javaeditor.OverrideIndicatorManager.recon
ciled(OverrideIndicatorManager.java:271)
        at 
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.reconcil
ed(CompilationUnitEditor.java:1669)
        at 
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconci
le(JavaReconcilingStrategy.java:107)
        at 
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconci
le(JavaReconcilingStrategy.java:118)
        at 
org.eclipse.jface.text.reconciler.CompositeReconcilingStrategy.reconc
ile(CompositeReconcilingStrategy.java:83)
        at 
org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.rec
oncile(JavaCompositeReconcilingStrategy.java:97)
        at org.eclipse.jface.text.reconciler.MonoReconciler.process
(MonoReconciler.java:76)
        at 
org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread
.run(AbstractReconciler.java:189)
Comment 1 Ian Brown CLA 2004-04-14 05:30:53 EDT
For reference, this happened whilst running Eclipse with the -debug switch.

It just popped up during editing (ie typing, not saving/building)

Nothing of particular note was going on at the time - I was just half-way 
through typing in a line of code...
Comment 2 Dani Megert CLA 2004-04-27 05:04:36 EDT
we now synchronize on 1 lock object.

available in builds >= I20040427