aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr71159/pr71159.aj
blob: d332b4a4d0dc215afeec9ac6c7edf5a1bf9a14bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
class A {
	
	private void foo() {}
	
}

class B extends A {
	
	protected void foo() {}
	
}

class C extends B {}


class D extends C {
	
	public void foo() {}
	
}

aspect X {
	
	void bar() {
		D d = new D();
		d.foo();
	}
	
	declare warning : call(* B.foo()) : "should match";
	declare warning : call(* A.foo()) : "should not match";
	
}