aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1612/pr347684/BindingInts3.java
blob: d90de6b0367f24044a530100a405555151020e6f (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
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@interface Foo {
  String i() default "abc";
}


public class BindingInts3 {
  public static void main(String []argv) {
    BindingInts3 inst = new BindingInts3();
    inst.a();
    inst.b();
  }

  @Foo
  void a() {}

  void b() {}
}

aspect X {
  before(String i): execution(* a(..)) && @annotation(Foo(i)) {
    System.out.println(thisJoinPointStaticPart+" "+i);
  }
}