Bug 16126 - ArrayIndexOutOfBoundsException during compilation
Summary: ArrayIndexOutOfBoundsException during compilation
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 2.0 M6   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-16 05:51 EDT by Rainer Worbis CLA
Modified: 2002-05-16 11:19 EDT (History)
0 users

See Also:


Attachments
Internal compiler error... (540 bytes, text/plain)
2002-05-16 06:25 EDT, Rainer Worbis CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Worbis CLA 2002-05-16 05:51:33 EDT
Build 20020412

while compiling a project the following error occurs (at the aprox. 700 file to 
compile). Deleting the .java file doesn´t help, the error occurs at the 
next .java file.

Rainer

Kind	Status	Priority	Description	Resource	In Folder
	Location
Error			Internal compiler error
java.lang.ArrayIndexOutOfBoundsException
	at 
org.eclipse.jdt.internal.compiler.parser.Parser.consumeClassHeaderImplements
(Parser.java:1470)
	at 
org.eclipse.jdt.internal.compiler.parser.RecoveredType.updateFromParserState
(RecoveredType.java:406)
	at org.eclipse.jdt.internal.compiler.parser.Parser.updateRecoveryState
(Parser.java:7424)
	at org.eclipse.jdt.internal.compiler.parser.Parser.resumeOnSyntaxError
(Parser.java:7371)
	at org.eclipse.jdt.internal.compiler.parser.Parser.parse
(Parser.java:6764)
	at org.eclipse.jdt.internal.compiler.parser.Parser.parse
(Parser.java:6988)
	at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse
(Parser.java:4656)
	at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile
(Compiler.java:282)
	at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:317)
	at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile
(AbstractImageBuilder.java:210)
	at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile
(AbstractImageBuilder.java:186)
	at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build
(BatchImageBuilder.java:46)
	at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll
(JavaBuilder.java:149)
	at org.eclipse.jdt.internal.core.builder.JavaBuilder.build
(JavaBuilder.java:95)
	at org.eclipse.core.internal.events.BuildManager$2.run
(BuildManager.java:383)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:838)
	at org.eclipse.core.runtime.Platform.run(Platform.java:411)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:119)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:173)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:183)
	at org.eclipse.core.internal.events.BuildManager$1.run
(BuildManager.java:143)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:838)
	at org.eclipse.core.runtime.Platform.run(Platform.java:411)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:157)
	at org.eclipse.core.internal.events.BuildManager.build
(BuildManager.java:211)
	at org.eclipse.core.internal.resources.Workspace.endOperation
(Workspace.java:743)
	at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1348)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run
(WorkspaceModifyOperation.java:78)
	at 
org.eclipse.jdt.internal.ui.refactoring.PerformChangeOperation.executeChange
(PerformChangeOperation.java:143)
	at org.eclipse.jdt.internal.ui.refactoring.PerformChangeOperation.run
(PerformChangeOperation.java:125)
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread
(ModalContext.java:296)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249)
	at org.eclipse.jface.dialogs.ProgressMonitorDialog.run
(ProgressMonitorDialog.java:335)
	at org.eclipse.jdt.internal.ui.reorg.ReorgAction.perform
(ReorgAction.java:81)
	at org.eclipse.jdt.internal.ui.reorg.DeleteResourcesAction.run
(DeleteResourcesAction.java:55)
	at org.eclipse.jdt.internal.ui.reorg.DualReorgAction.run
(DualReorgAction.java:51)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:590)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:407)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java:361)
	at org.eclipse.jface.action.ActionContributionItem.access$0
(ActionContributionItem.java:352)
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:819)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:777)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:190)
	at org.eclipse.core.launcher.Main.run(Main.java:549)
	at org.eclipse.core.launcher.Main.main(Main.java:390)
	OUTField.java	xmlProject/at/igs/anm/fields	line 0 in OUTField.java
Comment 1 Philipe Mulet CLA 2002-05-16 05:56:22 EDT
Would you per chance have the offending file around ? It is a bug in our 
parsing infrastructure, we wouldn't need the context, just the one offending 
file (note that this file should carry a problem which message is 
reading: "Internal compiler error...".

Comment 2 Philipe Mulet CLA 2002-05-16 06:06:13 EDT
David - will check for bug 15142 also address this one ?
Comment 3 Rainer Worbis CLA 2002-05-16 06:25:16 EDT
Created attachment 843 [details]
Internal compiler error...
Comment 4 Rainer Worbis CLA 2002-05-16 06:30:30 EDT
The trouble seems to be the .java file following the file which eclipse
mentiones - the file is called P#AFile.java (this was generated by an import
tool, not made via Eclipse). Remove this file - and everything works fine.

Rainer
Comment 5 David Audel CLA 2002-05-16 11:19:15 EDT
The problem is inside Parser#resetStack.
'listLength' is not reinitialized to 0.

Fixed.