]> source.dussan.org Git - aspectj.git/commitdiff
moved this check into here, was in JDT before
authoraclement <aclement>
Sat, 10 Dec 2011 00:52:48 +0000 (00:52 +0000)
committeraclement <aclement>
Sat, 10 Dec 2011 00:52:48 +0000 (00:52 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java

index 6c6376cfa37b262cb310cbda5f06262e43b61eb8..47dc5ed8cc91745ee2aebff3bc7041363eb153db 100644 (file)
@@ -206,6 +206,11 @@ public class AspectDeclaration extends TypeDeclaration {
         * this hook to add in the @AspectJ annotations.
         */
        public void addAtAspectJAnnotations() {
+               if (ignoreFurtherInvestigation) {
+                       // perClause likely to be null.  This flag used to be checked before we got called (at e33 level, in traverse(ASTVisitor visitor, CompilationUnitScope unitScope))
+                       // For e37 moved the check down to this level
+                       return;
+               }
                Annotation atAspectAnnotation = AtAspectJAnnotationFactory.createAspectAnnotation(perClause.toDeclarationString(),
                                declarationSourceStart);
                Annotation privilegedAnnotation = null;