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

@Retention(RetentionPolicy.RUNTIME)
@interface Anno {
  Class value();
//int i();
}

public class C {

  @Anno(String.class)
  //@Anno(i=3)
  public int i;

  public static void main(String []argv) {
    System.out.println(new C().i);
  }
}

aspect X {
  //before(): get(@Anno(String.class) * *(..)) {}
  before(): get(@Anno(value=String.class) * *) {}
  //before(): get(@Anno(i=3) * *) {}
}