aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1612/pr347684/BindingInts6.java
blob: 763b9d72a059d25be8912292afed89eae959feac (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
27
28
29
30
31
import java.lang.annotation.*;

enum Color { R,G,B; }

@Retention(RetentionPolicy.RUNTIME)
@interface Foo {
  String s() default "abc";
  int i() default 37;
  Color c() default Color.G;
  int j() default 21;
  int k() default 101;
  float f() default 1.0f;
}


public class BindingInts6 {
  public static void main(String []argv) {
    BindingInts6 inst = new BindingInts6();
    inst.a();
    inst.b();
  }
@Foo(j=1,k=99)
void a() {}
void b() {}
}

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