aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr129704/A.java
blob: a2e213cca4d10931cf025dd1c4e38e031ff7d30f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import java.lang.annotation.*;

interface GDO {}

@Retention(RetentionPolicy.RUNTIME) @interface Marker { }

class DCP<T extends GDO> {
 @Marker void getData(){}
}

aspect X {
  before(Marker a): execution(* getData(..)) && @annotation(a) { System.err.println(a);  }
}

public class A {
	public static void main(String[] args) {
		new DCP().getData();
	}
}