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

Bug 64162

Summary: ArrayIndexOutOfBoundsException in scanner
Product: [Eclipse Project] JDT Reporter: John Arthorne <john.arthorne>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description John Arthorne CLA 2004-05-26 12:30:46 EDT
Build: 3.0 M9.

From another bug report (bug 57656 comment 52). User reported these exceptions
in log file:

!ENTRY org.eclipse.ui 4 4 May 26, 2004 03:10:07.561
!MESSAGE *** SWT nested exception
!ENTRY org.eclipse.ui 4 0 May 26, 2004 03:10:07.561
!MESSAGE -1
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: -1
	at org.eclipse.jface.text.rules.BufferedRuleBasedScanner.read
(BufferedRuleBasedScanner.java:118)
	at 
org.eclipse.jdt.internal.ui.text.java.JavaCodeScanner$OperatorRule.evaluate
(JavaCodeScanner.java:81)
	at org.eclipse.jface.text.rules.RuleBasedScanner.nextToken
(RuleBasedScanner.java:155)
	at org.eclipse.jdt.internal.ui.text.AbstractJavaScanner.nextToken
(AbstractJavaScanner.java:115)
	at 
org.eclipse.jface.text.rules.DefaultDamagerRepairer.createPresentation
(DefaultDamagerRepairer.java:166)
	at 
org.eclipse.jface.text.presentation.PresentationReconciler.createPresentation
(PresentationReconciler.java:446)
	at 
org.eclipse.jface.text.presentation.PresentationReconciler.processDamage
(PresentationReconciler.java:555)
	at org.eclipse.jface.text.presentation.PresentationReconciler.access$3
(PresentationReconciler.java:553)
	at 
org.eclipse.jface.text.presentation.PresentationReconciler$InternalListener.tex
tChanged(PresentationReconciler.java:222)
	at org.eclipse.jface.text.TextViewer.updateTextListeners
(TextViewer.java:2235)
	at org.eclipse.jface.text.TextViewer.invalidateTextPresentation
(TextViewer.java:2931)
	at 
org.eclipse.jface.text.source.projection.ProjectionViewer.processModifications
(ProjectionViewer.java:878)
	at 
org.eclipse.jface.text.source.projection.ProjectionViewer.catchupWithProjection
AnnotationModel(ProjectionViewer.java:759)
	at org.eclipse.jface.text.source.projection.ProjectionViewer.access$7
(ProjectionViewer.java:731)
	at org.eclipse.jface.text.source.projection.ProjectionViewer$1.run
(ProjectionViewer.java:714)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages
(Synchronizer.java:106)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2693)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2385)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1363)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1334)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:253)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
	at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:97)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:307)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:256)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:127)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
	at org.eclipse.core.launcher.Main.run(Main.java:638)
	at org.eclipse.core.launcher.Main.main(Main.java:622)
Comment 1 Dani Megert CLA 2004-05-28 09:21:28 EDT

*** This bug has been marked as a duplicate of 57011 ***
Comment 2 Christof Marti CLA 2004-06-03 05:30:19 EDT
Acctually a dup of bug 63836.
Comment 3 Christof Marti CLA 2004-06-03 05:30:45 EDT

*** This bug has been marked as a duplicate of 63836 ***