From 727c1ccdcf5b76962dd29d6d2aee0d73aff927b8 Mon Sep 17 00:00:00 2001 From: jhugunin Date: Tue, 21 Jan 2003 18:35:03 +0000 Subject: [PATCH] test for Bug 29691 Static inner aspects cannot reference user defined pointcuts --- tests/ajcTests.xml | 6 ++++++ tests/bugs/PcdLookup.java | 19 +++++++++++++++++++ tests/jimTests.xml | 13 ++++++++++++- 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 tests/bugs/PcdLookup.java 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 -- 2.39.5