aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1612/prx/C.java
blob: 6b8c336b3b50e2c80c95b7e63ade9af115067d46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.lang.annotation.*;

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

public class C {

  @Anno(String.class)
  public int i;

  @Anno(Integer.class)
  public int j;

  public static void main(String []argv) {
    System.out.println(new C().i);
    System.out.println(new C().j);
  }
}
aspect X {
  before(): get(@Anno(value=String.class) * *) {}
}