summaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr114343/TestAspect.aj
blob: b0dcf02f3e005dae9a2a45ff037b9dad84bf7a6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import java.util.*;

public privileged aspect TestAspect {

  pointcut p(Test t):
    target(t) &&
    get(!public Set<Number+> *Set) &&
    !within(TestAspect);

  Set around(Test t):p(t) {
    Set s = proceed(t);
    return s;
  }

  public static void main(String []argv) {

    Set<Integer> si = new Test1().foo();
    Set<Double>  sd = new Test2().foo();
  }

}