aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-01 11:22:49 +0000
committeraclement <aclement>2005-11-01 11:22:49 +0000
commit2483e609ca9c0d9f5c43b60c0f32d7b9cdf51adc (patch)
tree48b45115125e919ec9eff9cc4cc4423006d00d1f /tests/bugs150
parentdd1533a8dfd689aa5b36cb441380419c98949df7 (diff)
downloadaspectj-2483e609ca9c0d9f5c43b60c0f32d7b9cdf51adc.tar.gz
aspectj-2483e609ca9c0d9f5c43b60c0f32d7b9cdf51adc.zip
test and fix for pr114343
Diffstat (limited to 'tests/bugs150')
-rw-r--r--tests/bugs150/pr114343/Test.java1
-rw-r--r--tests/bugs150/pr114343/Test1.java10
-rw-r--r--tests/bugs150/pr114343/Test2.java11
-rw-r--r--tests/bugs150/pr114343/TestAspect.aj21
4 files changed, 43 insertions, 0 deletions
diff --git a/tests/bugs150/pr114343/Test.java b/tests/bugs150/pr114343/Test.java
new file mode 100644
index 000000000..1a8a201f6
--- /dev/null
+++ b/tests/bugs150/pr114343/Test.java
@@ -0,0 +1 @@
+public class Test {}
diff --git a/tests/bugs150/pr114343/Test1.java b/tests/bugs150/pr114343/Test1.java
new file mode 100644
index 000000000..3bd2195a9
--- /dev/null
+++ b/tests/bugs150/pr114343/Test1.java
@@ -0,0 +1,10 @@
+import java.util.*;
+
+public class Test1 extends Test {
+ Set<Integer> intsSet;
+
+ public Set<Integer> foo() {
+ return intsSet;
+ }
+}
+
diff --git a/tests/bugs150/pr114343/Test2.java b/tests/bugs150/pr114343/Test2.java
new file mode 100644
index 000000000..983fc3819
--- /dev/null
+++ b/tests/bugs150/pr114343/Test2.java
@@ -0,0 +1,11 @@
+import java.util.*;
+
+public class Test2 extends Test {
+ Set<Double> doubSet;
+
+
+ public Set<Double> foo() {
+ return doubSet;
+ }
+}
+
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();
+ }
+
+}