aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs151/pr124654/GenericAnnotation.java
blob: 1bb725b55cfe49cabb507c7fe959fd88bc4a0fff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import java.lang.annotation.Annotation;

public abstract aspect GenericAnnotation<A extends Annotation> {

   pointcut annotatedCall(A a) : call(@A * *.*(..)) && @annotation(a);

   before(A a) : annotatedCall(a) {
       System.err.println("Reference pointcut advice. "+a.annotationType());
   }

   before(A a) : call(@A * *.*(..)) && @annotation(a) {
       System.err.println("Inlined pointcut advice. "+a.annotationType());
   }

}