summaryrefslogtreecommitdiffstats
path: root/tests/java5/annotations/declare/atfield/TwoOnOneField.aj
blob: d0f37b6b312fcd0373457f76d116aa6361884f8f (plain)
1
2
3
4
5
6
7
8
9
10
11
// trying to put two annotations onto one field
public aspect TwoOnOneField {
  declare @field: public int * : @Colored("red");
  declare @field: public int * : @Colored("blue");
}

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