diff options
author | jhugunin <jhugunin> | 2003-01-21 18:35:03 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2003-01-21 18:35:03 +0000 |
commit | 727c1ccdcf5b76962dd29d6d2aee0d73aff927b8 (patch) | |
tree | b19f68efd6c25125fd2cce59fd11d3d9c4656403 /tests/bugs | |
parent | 4dfb3f2ad89c38a46521698484667f4b6fe3085a (diff) | |
download | aspectj-727c1ccdcf5b76962dd29d6d2aee0d73aff927b8.tar.gz aspectj-727c1ccdcf5b76962dd29d6d2aee0d73aff927b8.zip |
test for Bug 29691
Static inner aspects cannot reference user defined pointcuts
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/PcdLookup.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/bugs/PcdLookup.java b/tests/bugs/PcdLookup.java new file mode 100644 index 000000000..eb8f8d0ce --- /dev/null +++ b/tests/bugs/PcdLookup.java @@ -0,0 +1,19 @@ +import org.aspectj.testing.Tester; + +/** @testcase Bugzilla Bug 29691 + Static inner aspects cannot reference user defined pointcuts + + */ +public class PcdLookup { + + public static void main(String[] args) { + } + + public static aspect Referencer { + pointcut mainCall() : call(void main(..)); + pointcut myMainCall() : mainCall() && outer(); + } + + pointcut outer(): within(PcdLookup); +} + |