summaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-01-21 18:35:03 +0000
committerjhugunin <jhugunin>2003-01-21 18:35:03 +0000
commit727c1ccdcf5b76962dd29d6d2aee0d73aff927b8 (patch)
treeb19f68efd6c25125fd2cce59fd11d3d9c4656403 /tests/bugs
parent4dfb3f2ad89c38a46521698484667f4b6fe3085a (diff)
downloadaspectj-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.java19
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);
+}
+