Bug 290133

Summary: Provide better error when subclass is missing @Aspect
Product: [Tools] AspectJ Reporter: Jakub Holy <maly.velky>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: aclement
Version: 1.6.5   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Jakub Holy CLA 2009-09-22 10:24:19 EDT
Using @AspectJ notion, if I have an abstract aspect and define a subclass but forget to add the @Aspect annotation (which could be inheritable anyway) I get a confusing error "class MyChildAspect can not extend aspect MyParentAspect". It'd be much better if the error read "The class MyChildAspect extending the aspect MyParentAspect should be declared as aspect itself using either the annotation @Aspect or keyword 'aspect' instead of 'class'."

@ Aspect
public abstract class MyParentAspect {
...
}
-----
public class MyChildAspect extends MyParentAspect {
...
}

Using Eclipse 3.4, AJDT 2.0.0.e34x
Comment 1 Andrew Clement CLA 2013-06-24 11:04:19 EDT
unsetting the target field which is currently set for something already released