]> source.dussan.org Git - aspectj.git/commitdiff
fix for NPE revealed by BcWeaverJarMaker test code
authorjhugunin <jhugunin>
Mon, 19 May 2003 20:50:51 +0000 (20:50 +0000)
committerjhugunin <jhugunin>
Mon, 19 May 2003 20:50:51 +0000 (20:50 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java

index abee60abfdd94189690a4f720de86a28b2846d1b..4b598afcea2465bbea3d8b3138aedae438e9a0ce 100644 (file)
@@ -63,7 +63,7 @@ public class EclipseSourceType extends ResolvedTypeX.ConcreteName {
 
 
        public boolean isAspect() {
-               return binding.scope.referenceContext instanceof AspectDeclaration;
+               return declaration instanceof AspectDeclaration;
        }
 
        public boolean isWovenBy(ResolvedTypeX aspectType) {