aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/PR118149.aj
blob: 99bd275375a59492993b827f4a28363559f5075b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
public aspect PR118149 {

	public pointcut pc1(String s)
		: execution(* C.*()) && args(s) && if(s != null);
	
	public pointcut pc2(String s)
		: execution(C.new(String,..)) 
		&& args(s,..) && if(s != null);

	public pointcut pcOR(String s) : pc1(s) || pc2(s);
	
	before(String s) : pcOR(s) {	
	}
	
}


class C {

	public C(String s, boolean b) {		
	}
	
}