From 17ac62ab95a36a5ad492d4e0c4b44d0ca7d98f5c Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 1 Dec 2008 20:26:26 +0000 Subject: [PATCH] 213751: fix --- weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java b/weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java index 8ff67fbd0..7d5a7cf18 100644 --- a/weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java +++ b/weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java @@ -387,7 +387,7 @@ public class AtAjAttributes { hasAtAspectJAnnotation = hasAtAspectJAnnotation || hasAtAspectJAnnotationMustReturnVoid; // semantic check - must be in an @Aspect [remove if previous block bypassed in advance] - if (hasAtAspectJAnnotation && !type.isAnnotationStyleAspect()) { + if (hasAtAspectJAnnotation && !type.isAspect()) { // isAnnotationStyleAspect()) { msgHandler.handleMessage(new Message("Found @AspectJ annotations in a non @Aspect type '" + type.getName() + "'", IMessage.WARNING, null, type.getSourceLocation())); // go ahead -- 2.39.5