From 7facf6b0be071b1267c36114cd0d9af218bdd197 Mon Sep 17 00:00:00 2001 From: jhugunin Date: Tue, 22 Apr 2003 17:23:07 +0000 Subject: [PATCH] fix for Bugzilla Bug 36736 compiler error expected for implemented abstract pointcuts --- .../ajdt/internal/compiler/ast/PointcutDeclaration.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- 2.39.5