summaryrefslogtreecommitdiffstats
path: root/tests/java5/autoboxing/AspectInteger.aj
blob: 4fb7e815f5ec36abab7ffeb65f6f1069efe1fc48 (plain)
1
2
3
4
5
6
7
8
9
10
11
public aspect AspectInteger {

  // The pointcuts here expose context
  before(Integer i): within(AutoboxingI) && call(* met*(..)) && args(i) {
    System.err.println("Matching by Integer:"+i);
  }

  before(int i): within(AutoboxingI) && call(* met*(..)) && args(i) {
    System.err.println("Matching by int:"+i);
  }
}