summaryrefslogtreecommitdiffstats
path: root/tests/bugs/DeclareErrorNamedPointcutCE.java
blob: 94865e4d3bce6f76ed3d9b6957fca11dbe5b0a31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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";  
}