]> source.dussan.org Git - aspectj.git/commitdiff
fix for Bugzilla Bug 36736
authorjhugunin <jhugunin>
Tue, 22 Apr 2003 17:23:07 +0000 (17:23 +0000)
committerjhugunin <jhugunin>
Tue, 22 Apr 2003 17:23:07 +0000 (17:23 +0000)
   compiler error expected for implemented abstract pointcuts

org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/PointcutDeclaration.java

index 5f5916f7a6deef52b1c5dc9c0b236bb95495a025..fc4551ec61fa16339173a95dcaea1ef4879cf827 100644 (file)
@@ -75,7 +75,12 @@ public class PointcutDeclaration extends MethodDeclaration {
        }
 
        public void resolveStatements() {
-               if (isAbstract()) this.modifiers |= AccSemicolonBody;
+               if (isAbstract()) {
+                       this.modifiers |= AccSemicolonBody;
+                       if (pointcutDesignator != null) {
+                               scope.problemReporter().signalError(sourceStart, sourceEnd, "abstract pointcut can't have body");
+                       }
+               } 
                
                if (binding == null || ignoreFurtherInvestigation) return;