Browse Source

pr 45184: External pointcut refs not resolved if named pointcut used by declare

tags/mostlyLastEclipse2xTree_20040112
acolyer 20 years ago
parent
commit
ed48480aba
1 changed files with 18 additions and 0 deletions
  1. 18
    0
      tests/bugs/DeclareErrorNamedPointcutCE.java

+ 18
- 0
tests/bugs/DeclareErrorNamedPointcutCE.java View File

@@ -0,0 +1,18 @@
// pr 45184

public class DeclareErrorNamedPointcutCE {
public static void main(String[] args) {
new C().run();
}
}

class C {
void run() { } // CW expected here
}

aspect A { pointcut pc(): execution(void run()); }

aspect B {
pointcut ref() : A.pc(); // bug: A.pc() treated as B.pc()
declare error : ref() : "ref";
}

Loading…
Cancel
Save