aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr113447/PR113447b.java
blob: baa0abaa6c5b51869307dfdafa09e7f0bc001fcf (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{};

@Annotation
public class PR113447b {

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

aspect Super {

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

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

}