Community
Participate
Working Groups
An error is issued when a sub-aspect does not implement an inherited abstract pointcut. This is missing for a sub-@aspect.
Created attachment 33852 [details] Testcase Includes bug 125699
Straightforward (hopefully) one for you Helen.
The reason the error message isn't coming out is in AjLookupEnvironment.resolvePointcutDeclarations(..). The pointcut declarations are only checked if the aspect has pointcuts or it's an AspectDeclaration. In the case of the supplied testcase, there are no pointcuts in the SubAtAspect and its not an AspectDeclaration (it's a TypeDeclaration instead). If you add another pointcut to the SubAtAspect then the testcase passes and the expected error message appears. The fix is therefore to augment the check to see if we're an @Aspect TypeDeclaration and if so then check the pointcut declarations.
Created attachment 33933 [details] proposed fix Patch containing a proposed fix - apply this to the org.aspectj.ajdt.core project.
fix available.