aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/suppressedWarnings/SuppressionDuringMatching.aj
blob: 0c0cfef622e9d132508e2e81a85113f097b8d97d (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
35
36
37
38
39
40
41
42
43
44
45
46
import org.aspectj.lang.annotation.*;

public aspect SuppressionDuringMatching {
	
//	// XLint:unmatchedSuperTypeInCall
//	// XLint:adviceDidNotApply
//	before() : call(* Sub.foo()) {
//		
//	}
//	
//	@SuppressAjWarnings
//	before() : call(* Sub.foo()) {
//		
//	}
//	
//	// XLint:unmatchedSuperTypeInCall
//	@SuppressAjWarnings("adviceDidNotApply")
//	before() : call(* Sub.foo()) {
//		
//	}
//	
	
	// XLint:adviceDidNotApply
	@SuppressAjWarnings("unmatchedSuperTypeInCall")
	before() : call(* Sub.foo()) {
		
	}
	
	
}

class Super {
	
	public void foo() {}
	
	void bar() {
		foo();
	}
}

class Sub extends Super {
	
	void bar() {
		foo();
	}
}