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

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

public class PR113447c {

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

	public void method4(int i){}
	public void method5(int i){}
}

aspect Super {

	pointcut p(Annotation a) : 
		@withincode(a) && (call(void method4(int)) 
				|| call(void method5(int)));

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

}