summaryrefslogtreecommitdiffstats
path: root/tests/java5/annotations/declare/atfield/TwoOnOneField2.aj
blob: d886eb2c1ec3593976a41b0eddfbb7bc20bd8950 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// trying to put two annotations onto one field - should be OK, they are diff annotations
public aspect TwoOnOneField2 {
  declare @field: public int * : @Colored("yellow");
  declare @field: public int * : @Fruit("banana");
}

aspect X {
  before(): set(@Colored * *) {
    System.err.println("Colored field access at "+thisJoinPoint);
  }
  before(): set(@Fruit * *) {
    System.err.println("Fruit field access at "+thisJoinPoint);
  }
}