Browse Source

fix Bug 29691

   Static inner aspects cannot reference user defined pointcuts
tags/V_1_1_b5
jhugunin 21 years ago
parent
commit
4dfb3f2ad8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      weaver/src/org/aspectj/weaver/patterns/ReferencePointcut.java

+ 1
- 1
weaver/src/org/aspectj/weaver/patterns/ReferencePointcut.java View 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;

Loading…
Cancel
Save