org.aspectj/tests/bugs150/pr114343/TestAspect.aj
2005-11-01 11:22:49 +00:00

22 lines
367 B
Plaintext

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();
}
}