aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr114343/TestAspect.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs150/pr114343/TestAspect.aj')
-rw-r--r--tests/bugs150/pr114343/TestAspect.aj21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/bugs150/pr114343/TestAspect.aj b/tests/bugs150/pr114343/TestAspect.aj
new file mode 100644
index 000000000..b0dcf02f3
--- /dev/null
+++ b/tests/bugs150/pr114343/TestAspect.aj
@@ -0,0 +1,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();
+ }
+
+}