Index: src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java =================================================================== RCS file: /home/technology/org.aspectj/modules/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java,v retrieving revision 1.55 diff -u -r1.55 AjLookupEnvironment.java --- src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java 12 Dec 2005 19:16:12 -0000 1.55 +++ src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java 1 Feb 2006 13:14:54 -0000 @@ -421,7 +421,19 @@ } } - if (hasPointcuts || dec instanceof AspectDeclaration) { + Annotation[] annotations = dec.annotations; + boolean isAtAspect = false; + if (annotations != null) { + for (int i = 0; i < annotations.length; i++) { + Annotation annotation = annotations[i]; + if (annotation.resolvedType.debugName().equals("org.aspectj.lang.annotation.Aspect")) { + isAtAspect = true; + break; + } + } + } + + if (hasPointcuts || dec instanceof AspectDeclaration || isAtAspect) { ReferenceType name = (ReferenceType)factory.fromEclipse(sourceType); EclipseSourceType eclipseSourceType = (EclipseSourceType)name.getDelegate(); eclipseSourceType.checkPointcutDeclarations();