]> source.dussan.org Git - aspectj.git/commitdiff
fix Bug 29691
authorjhugunin <jhugunin>
Tue, 21 Jan 2003 18:32:30 +0000 (18:32 +0000)
committerjhugunin <jhugunin>
Tue, 21 Jan 2003 18:32:30 +0000 (18:32 +0000)
   Static inner aspects cannot reference user defined pointcuts

weaver/src/org/aspectj/weaver/patterns/ReferencePointcut.java

index c364cd3b090822a88dee7c8106218ef7060f6dad..e94634cc94156082a54f68f0c0d0f0a43c7b705e 100644 (file)
@@ -123,7 +123,7 @@ public class ReferencePointcut extends Pointcut {
                
                ResolvedPointcutDefinition pointcutDef = searchType.findPointcut(name);
                // if we're not a static reference, then do a lookup of outers
-               if (onType == null) {
+               if (pointcutDef == null && onType == null) {
                        while (true) {
                                TypeX declaringType = searchType.getDeclaringType();
                                if (declaringType == null) break;