From 80c43df23f0870fed4eb57a079841b5bdf21df06 Mon Sep 17 00:00:00 2001 From: jhugunin Date: Mon, 19 May 2003 20:50:51 +0000 Subject: fix for NPE revealed by BcWeaverJarMaker test code --- .../org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'org.aspectj.ajdt.core') diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java index abee60abf..4b598afce 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java @@ -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) { -- cgit v1.2.3