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

@Retention(RetentionPolicy.RUNTIME) 
@interface Wibble {
  String message();
}

public class StringBinding {
   
  @Wibble(message="hello world")
  public static void main(String []argv) {
  }
}

aspect X {
  before(String msg): execution(* *(..)) && @annotation(Wibble(msg)) {
    System.out.println(msg);
  }
}