aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/annotations/thisOrtarget/BindingWithAtTarget.aj
blob: 6594dd3f3e65f6d9324aa2ba171118dea6ca116d (plain)
1
2
3
4
5
6
7
8
9
10
11
public aspect BindingLimitation {
	
  pointcut doSomethingExecution() : execution(* doSomething());
  pointcut doSomethingCall() : call(* doSomething());
  
  after(MyAnnotation ann) returning : @target(ann) && doSomethingCall() {
    System.err.println("Annotation is "+ann);
  	// should be compile time error (limitation)
  }
	
}