aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr113447/PR113447d.java
blob: bf7520d2882dad3760043f323689777bb68e2b1f (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
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Retention(RetentionPolicy.RUNTIME)
@interface Annotation{};

public class PR113447d {

	public static void main(String[] args) {
		PR113447d me = new PR113447d();
		me.method4(1);
	}
	
	@Annotation public void method4(int i){}
	@Annotation public void method5(int i){}
}

aspect Super {
	
	pointcut p(Annotation a) : 
		@annotation(a) && (call(void method4(int)) 
				|| call(void method5(int)));

	before(Annotation a) : p(a) {}
}