summaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr71159/PrivateITD.aj
blob: e4649d01598481aad766cef5398d19d4d1d30717 (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
33
34
class A {
	

	
}

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

class C extends B {}


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

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