From: jhugunin Date: Tue, 22 Apr 2003 17:23:07 +0000 (+0000) Subject: fix for Bugzilla Bug 36736 X-Git-Tag: V1_1_0_RC2~166 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7facf6b0be071b1267c36114cd0d9af218bdd197;p=aspectj.git fix for Bugzilla Bug 36736 compiler error expected for implemented abstract pointcuts --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/PointcutDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/PointcutDeclaration.java index 5f5916f7a..fc4551ec6 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/PointcutDeclaration.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/PointcutDeclaration.java @@ -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;