diff options
author | aclement <aclement> | 2005-10-27 18:01:54 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-10-27 18:01:54 +0000 |
commit | 8cea30fedf7a74133c67623ec9286ac9578c9a88 (patch) | |
tree | fd5446c25cb8c56192a605dca7799346285537b0 /tests/bugs150/pr113861 | |
parent | ae3e83163186bb018b5bad55771e6384fad52802 (diff) | |
download | aspectj-8cea30fedf7a74133c67623ec9286ac9578c9a88.tar.gz aspectj-8cea30fedf7a74133c67623ec9286ac9578c9a88.zip |
test and fix for pr113861
Diffstat (limited to 'tests/bugs150/pr113861')
-rw-r--r-- | tests/bugs150/pr113861/Test.java | 15 | ||||
-rw-r--r-- | tests/bugs150/pr113861/TestAspect.java | 14 |
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; + } +} |