summaryrefslogtreecommitdiffstats
path: root/tests/bugs1612/prx/F.java
blob: 6945024b9968efc8368aaaf6bf56efe08b6e2dd2 (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 {
Class i() default Number.class;
}

public class F {

  @Anno(i=Integer.class)
  public int i;

  @Anno
  public int j;

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

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