Bug 532175 - ArrayIndexOutOfBoundsException at ImplicitNullAnnotationVerifier.java:342
Summary: ArrayIndexOutOfBoundsException at ImplicitNullAnnotationVerifier.java:342
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.8.11   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-08 07:15 EST by David Webster CLA
Modified: 2018-03-21 15:47 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.