summaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr113861
diff options
context:
space:
mode:
authoraclement <aclement>2005-10-27 18:01:54 +0000
committeraclement <aclement>2005-10-27 18:01:54 +0000
commit8cea30fedf7a74133c67623ec9286ac9578c9a88 (patch)
treefd5446c25cb8c56192a605dca7799346285537b0 /tests/bugs150/pr113861
parentae3e83163186bb018b5bad55771e6384fad52802 (diff)
downloadaspectj-8cea30fedf7a74133c67623ec9286ac9578c9a88.tar.gz
aspectj-8cea30fedf7a74133c67623ec9286ac9578c9a88.zip
test and fix for pr113861
Diffstat (limited to 'tests/bugs150/pr113861')
-rw-r--r--tests/bugs150/pr113861/Test.java15
-rw-r--r--tests/bugs150/pr113861/TestAspect.java14
2 files changed, 29 insertions, 0 deletions
diff --git a/tests/bugs150/pr113861/Test.java b/tests/bugs150/pr113861/Test.java
new file mode 100644
index 000000000..d9316d09b
--- /dev/null
+++ b/tests/bugs150/pr113861/Test.java
@@ -0,0 +1,15 @@
+package com;
+import java.util.*;
+
+public class Test {
+
+ public static void main(String [] argv) {
+ new Test().foo();
+ }
+
+ Set<Integer> intsSet = new HashSet<Integer>();
+
+ public Set<Integer> foo() {
+ return intsSet;
+ }
+}
diff --git a/tests/bugs150/pr113861/TestAspect.java b/tests/bugs150/pr113861/TestAspect.java
new file mode 100644
index 000000000..76ffa5389
--- /dev/null
+++ b/tests/bugs150/pr113861/TestAspect.java
@@ -0,0 +1,14 @@
+package com;
+import java.util.*;
+
+public privileged aspect TestAspect {
+ pointcut gettingMember(Test t) :
+ target(t) &&
+ get(!public Set<Integer> com.*.*) &&
+ !within(TestAspect);
+
+ Set<Integer> around(Test t) : gettingMember(t) {
+ Set s = proceed(t);
+ return s;
+ }
+}