aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/PrivatePointcutOverriding.aj
blob: a5b298d8c1984a361b31cbeea699bcc8ce4805cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
abstract aspect SuperAspect {
	
	private pointcut matchedJP() : execution(* foo(..));
	
	declare warning : matchedJP() : "matched join point from super advice";
	
}

public aspect PrivatePointcutOverriding extends SuperAspect {
	
	private pointcut matchedJP() : execution(* bar(..));
	
	declare warning : matchedJP() : "matched join point from sub advice";
	
}

class C {
	
	void foo() {}
	
	void bar() {}
	
}