]> source.dussan.org Git - aspectj.git/commitdiff
213751: fix
authoraclement <aclement>
Mon, 1 Dec 2008 20:26:26 +0000 (20:26 +0000)
committeraclement <aclement>
Mon, 1 Dec 2008 20:26:26 +0000 (20:26 +0000)
weaver/src/org/aspectj/weaver/bcel/AtAjAttributes.java

index 8ff67fbd0a4bd61436022d0afb3d5f5771776c2f..7d5a7cf18220f69b08cdde819bf6dd8d462fc978 100644 (file)
@@ -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