diff options
Diffstat (limited to 'tests/bugs/PcdLookup.java')
-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); +} + |