Bug 532175

Summary: ArrayIndexOutOfBoundsException at ImplicitNullAnnotationVerifier.java:342
Product: [Tools] AspectJ Reporter: David Webster <davidcwebster>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: aclement, davidcwebster
Version: 1.8.11   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description David Webster CLA 2018-03-08 07:15:28 EST
This error happens in SpringSource Tool Suite with AspectJ Compiler version 1.8.13.201710301818 (sorry I couldn't select that version in this bug's version field - it wasn't listed).

The same code compiles fine in SpringSource Tool Suite on Ubuntu with AspectJ Compiler version 1.8.10.201703272045.

java.lang.ArrayIndexOutOfBoundsException
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ImplicitNullAnnotationVerifier.checkNullSpecInheritance(ImplicitNullAnnotationVerifier.java:342)
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodVerifier15.checkNullSpecInheritance(MethodVerifier15.java:423)
at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodVerifier15.checkAgainstInheritedMethods(MethodVerifier15.java:40 ... ldJob.run(AutoBuildJob.java:232)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

Compile error: ArrayIndexOutOfBoundsException thrown: 0
Comment 1 Andrew Clement CLA 2018-03-21 15:47:14 EDT
I think it is probably the JDT upgrade in the 1.8.10 release that causes this issue (the 1.8.10 datestamp you have there being a build snapshot of it from earlier in that year). My preference for addressing this would be to get a good AJDT with AspectJ 9 out, the problem is in the JDT compiler (org.aspectj.org.eclipse.jdt...) and there have been a lot of changes in that version - it might 'just fix it' but if not then I'd rather fix it on the more recent version.

You wouldn't find those long version numbers as targets for bugs here as it is the number given to the eclipse plugin packaged version of AspectJ included in AJDT.  I'd be interested in whether it compiles outside of the tools using a later 1.8.X or 1.9 build.