Community
Participate
Working Groups
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)
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.
Please provide steps to recreate along with build number.
Maxime: suggest close as remind until steps are available
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.
If by any chance you reproduce the bug with less sensitive material, please reopen.
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.