From 4dfb3f2ad89c38a46521698484667f4b6fe3085a Mon Sep 17 00:00:00 2001 From: jhugunin Date: Tue, 21 Jan 2003 18:32:30 +0000 Subject: [PATCH] fix Bug 29691 Static inner aspects cannot reference user defined pointcuts --- weaver/src/org/aspectj/weaver/patterns/ReferencePointcut.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weaver/src/org/aspectj/weaver/patterns/ReferencePointcut.java b/weaver/src/org/aspectj/weaver/patterns/ReferencePointcut.java index c364cd3b0..e94634cc9 100644 --- a/weaver/src/org/aspectj/weaver/patterns/ReferencePointcut.java +++ b/weaver/src/org/aspectj/weaver/patterns/ReferencePointcut.java @@ -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; -- 2.39.5