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

Bug 324135

Summary: ArrayIndexOutOfBoundsException at AjState.java:1767
Product: [Tools] AspectJ Reporter: Jesse Englert <jenglert>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: aclement
Version: DEVELOPMENT   
Target Milestone: 1.6.10   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Jesse Englert CLA 2010-08-31 16:50:55 EDT
Build Identifier: 20100617-1415

Using AspectJ version: 1.6.10.20100817163700

I hit the blow exception after saving a edited java file.

java.lang.ArrayIndexOutOfBoundsException
at org.aspectj.ajdt.internal.core.builder.AjState.hasStructuralChanges(AjState.java:1767)
at org.aspectj.ajdt.internal.core.builder.AjState.recordClassFile(AjState.java:1510)
at org.aspectj.ajdt.internal.core.builder.AjState.noteResult(AjState.java:1322)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager$3.acceptResult(AjBuildManager.java:1049)
at org.aspectj.ajdt.internal.compiler.AjPipeli ... b.run(AutoBuildJob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Compile error: ArrayIndexOutOfBoundsException thrown: 14

Reproducible: Didn't try
Comment 1 Andrew Clement CLA 2010-08-31 20:29:57 EDT
Fix committed. Can happen on an incremental build when determining whether the set of inner types for a file has changed from one build to the next (adding a new inner class is likely the trigger).

AJDT will pick up the fix next time I drop an AJ build into it.