Bug 124064 - Internal Compiler Error Pointing to Line 0 of Source File
Summary: Internal Compiler Error Pointing to Line 0 of Source File
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2006-01-16 21:07 EST by Edwin Lee CLA
Modified: 2009-08-30 02:06 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edwin Lee CLA 2006-01-16 21:07:47 EST
I got this internal compiler error on line 0 of a source file. The source file itself has no compile problems, i.e. i could build the project with ant.

Not sure if this is helpful, but i think i started getting this exception when i added a few more lines to the source file. The length of the source file is now 8910 lines.

Internal compiler error
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at org.eclipse.jdt.internal.compiler.flow.UnconditionalFlowInfo.copy(UnconditionalFlowInfo.java:197)
at org.eclipse.jdt.internal.compiler.flow.ExceptionHandlingFlowContext.recordHandlingException(ExceptionHandlingFlowContext.java:175)
at org.eclipse.jdt.internal.compiler.flow.FlowContext.checkExceptionHandlers(FlowContext.java:105)
at org.eclipse.jdt.internal.compiler.ast.AllocationExpression.analyseCode(AllocationExpression.java:50)
at org.eclipse.jdt.internal.compiler.ast.SingleNameReference.analyseAssignment(SingleNameReference.java:66)
at org.eclipse.jdt.internal.compiler.ast.Assignment.analyseCode(Assignment.java:51)
at org.eclipse.jdt.internal.compiler.ast.Block.analyseCode(Block.java:40)
at org.eclipse.jdt.internal.compiler.ast.TryStatement.analyseCode(TryStatement.java:108)
at org.eclipse.jdt.internal.compiler.ast.Block.analyseCode(Block.java:40)
at org.eclipse.jdt.internal.compiler.ast.IfStatement.analyseCode(IfStatement.java:85)
at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.analyseCode(MethodDeclaration.java:82)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.internalAnalyseCode(TypeDeclaration.java:697)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.analyseCode(TypeDeclaration.java:264)
at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.analyseCode(CompilationUnitDeclaration.java:80)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:513)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:335)
at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:215)
at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:165)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:49)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:212)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:140)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:574)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:158)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:192)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:221)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:224)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:243)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:272)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:142)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:203)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
Comment 1 Edwin Lee CLA 2006-01-17 02:58:18 EST
To add on, i think this may have something to do with the number of uncommented lines in the source file.

When i commented out a block of 16 lines, the exception goes away, and when i uncommented it, the exception comes back.
Comment 2 Philipe Mulet CLA 2006-01-17 04:07:39 EST
Please provide steps to recreate along with build number.
Comment 3 Philipe Mulet CLA 2006-01-17 04:08:10 EST
Maxime: suggest close as remind until steps are available
Comment 4 Edwin Lee CLA 2006-01-17 04:28:50 EST
Build id: 200412162000

I don't have the exact steps to reproduce the error. To describe the problem again, i have a .java file that is 8912 lines long. In the "Problems" view, the first entry describes an "Internal compiler error" pointing to line 0 of that .java file. The stack trace of the "Internal compiler error" is the one i've given earlier. When i comment out 16 lines of code, the error goes away.

I tried to reproduce the error with another long .java file, but it didn't surface. Due to proprietary issues, i can't send the .java file that i had problems with either.

Sorry, that's all the information that i am able to provide. If you want to "close as remind until steps are available", please go ahead.
Comment 5 Maxime Daniel CLA 2006-01-17 10:57:42 EST
If by any chance you reproduce the bug with less sensitive material, please reopen.
Comment 6 Denis Roy CLA 2009-08-30 02:06:53 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.