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

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

public class D {

  @Anno(i=3)
  public int i;

  @Anno(i=4)
  public int j;

  @Anno(i=5)
  public int k;

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