From: jhugunin Date: Tue, 21 Jan 2003 18:35:03 +0000 (+0000) Subject: test for Bug 29691 X-Git-Tag: V_1_1_b5~92 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=727c1ccdcf5b76962dd29d6d2aee0d73aff927b8;p=aspectj.git test for Bug 29691 Static inner aspects cannot reference user defined pointcuts --- diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml index da82705e5..6c2c2ad5b 100644 --- a/tests/ajcTests.xml +++ b/tests/ajcTests.xml @@ -5527,4 +5527,10 @@ + + + + + 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); +} + diff --git a/tests/jimTests.xml b/tests/jimTests.xml index 823bf25b9..23f82d378 100644 --- a/tests/jimTests.xml +++ b/tests/jimTests.xml @@ -1,7 +1,18 @@ - + + + + \ No newline at end of file