Describe the bug On the 4.2.x branch, :spring-security-aspects:compileSpringIoTestJavaAspect is failing.

The following is a snippet of the larger error log:

[ant:iajc]      
[ant:iajc] [error] can't determine implemented interfaces of missing type InitializingBean
[ant:iajc] when collecting itds and declares AnnotationSecurityAspect
[ant:iajc] when completing type bindings 
[ant:iajc] when batch building BuildConfig[null] #Files=2 AopXmls=#0
[ant:iajc]  [Xlint:cantFindType]
[ant:iajc]      
[ant:iajc] [error] can't determine pointcuts declared in missing type InitializingBean
[ant:iajc] when resolving pointcut declarations AnnotationSecurityAspect
[ant:iajc] when completing type bindings 
[ant:iajc] when batch building BuildConfig[null] #Files=2 AopXmls=#0
[ant:iajc]  [Xlint:cantFindType]
[ant:iajc]      
[ant:iajc] [error] can't determine implemented interfaces of missing type InitializingBean
[ant:iajc] when adding declare warning and errors AnnotationSecurityAspect
[ant:iajc] when completing type bindings 
[ant:iajc] when batch building BuildConfig[null] #Files=2 AopXmls=#0
[ant:iajc]  [Xlint:cantFindType]
[ant:iajc]
[ant:iajc] /home/jzheaux/dev/spring-projects/spring-security-4.2.x/aspects/src/main/java/org/springframework/security/access/intercept/aspectj/aspect/AnnotationSecurityAspect.aj:18 [error] The import org.springframework.beans cannot be resolved
[ant:iajc] import org.springframework.beans.factory.InitializingBean;
[ant:iajc]        ^^^^^^^^^^^^^^^^^^^^^^^^
[ant:iajc] /home/jzheaux/dev/spring-projects/spring-security-4.2.x/aspects/src/main/java/org/springframework/security/access/intercept/aspectj/aspect/AnnotationSecurityAspect.aj:19 [error] The import org.springframework.security.access.annotation cannot be resolved
[ant:iajc] import org.springframework.security.access.annotation.Secured;
[ant:iajc]        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ant:iajc] /home/jzheaux/dev/spring-projects/spring-security-4.2.x/aspects/src/main/java/org/springframework/security/access/intercept/aspectj/aspect/AnnotationSecurityAspect.aj:20 [error] The import org.springframework.security.access.intercept.aspectj.AspectJCallback cannot be resolved
[ant:iajc] import org.springframework.security.access.intercept.aspectj.AspectJCallback;
[ant:iajc]        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ant:iajc] /home/jzheaux/dev/spring-projects/spring-security-4.2.x/aspects/src/main/java/org/springframework/security/access/intercept/aspectj/aspect/AnnotationSecurityAspect.aj:21 [error] The import org.springframework.security.access.intercept.aspectj.AspectJMethodSecurityInterceptor cannot be resolvedSteps to reproduce the behavior.
[ant:iajc] import org.springframework.security.access.intercept.aspectj.AspectJMethodSecurityInterceptor;
[ant:iajc]        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ant:iajc] /home/jzheaux/dev/spring-projects/spring-security-4.2.x/aspects/src/main/java/org/springframework/security/access/intercept/aspectj/aspect/AnnotationSecurityAspect.aj:22 [error] The import org.springframework.security.access.prepost cannot be resolved
[ant:iajc] import org.springframework.security.access.prepost.PostAuthorize;
[ant:iajc]        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...

To Reproduce

To reproduce, check out the 4.2.x branch and run:

./gradlew :spring-security-aspects:compileSpringIoTestJavaAspect:check

Additional Background

Trying a different JDK 8 versions doesn't appear to affect the outcome. The relevant code was written using JDK 5.

The compilation errors are preceded by a warning:

[ant:iajc] [warning] couldn't find aspectjrt.jar on classpath, checked: /home/jzheaux/.sdkman/candidates/java/8.0.242-open/jre/lib/resources.jar:/home/jzheaux/.sdkman/candidates/java/8.0.242-open/jre/lib/rt.jar:/home/jzheaux/.sdkman/candidates/java/8.0.242-open/jre/lib/sunrsasign.jar:/home/jzheaux/.sdkman/candidates/java/8.0.242-open/jre/lib/jsse.jar:/home/jzheaux/.sdkman/candidates/java/8.0.242-open/jre/lib/jce.jar:/home/jzheaux/.sdkman/candidates/java/8.0.242-open/jre/lib/charsets.jar:/home/jzheaux/.sdkman/candidates/java/8.0.242-open/jre/lib/jfr.jar:/home/jzheaux/.sdkman/candidates/java/8.0.242-open/jre/classes:/home/jzheaux/.sdkman/candidates/java/8.0.242-open/jre/lib/ext/dnsns.jar:/home/jzheaux/.sdkman/candidates/java/8.0.242-open/jre/lib/ext/zipfs.jar:/home/jzheaux/.sdkman/candidates/java/8.0.242-open/jre/lib/ext/cldrdata.jar:/home/jzheaux/.sdkman/candidates/java/8.0.242-open/jre/lib/ext/sunjce_provider.jar:/home/jzheaux/.sdkman/candidates/java/8.0.242-open/jre/lib/ext/sunec.jar:/home/jzheaux/.sdkman/candidates/java/8.0.242-open/jre/lib/ext/sunpkcs11.jar:/home/jzheaux/.sdkman/candidates/java/8.0.242-open/jre/lib/ext/nashorn.jar:/home/jzheaux/.sdkman/candidates/java/8.0.242-open/jre/lib/ext/localedata.jar:/home/jzheaux/.sdkman/candidates/java/8.0.242-open/jre/lib/ext/jaccess.jar:/home/jzheaux/.gradle/caches/modules-2/files-2.1/org.aspectj/aspectjtools/1.8.14/2d14cb8cec0efa853672da511e944423fd75f169/aspectjtools-1.8.14.jar

Comment From: jzheaux

The 4.2.x line is no EOL, so we won't address this issue.