aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/InnerPointcut.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/InnerPointcut.java')
-rw-r--r--tests/bugs/InnerPointcut.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/bugs/InnerPointcut.java b/tests/bugs/InnerPointcut.java
new file mode 100644
index 000000000..063a5eb65
--- /dev/null
+++ b/tests/bugs/InnerPointcut.java
@@ -0,0 +1,20 @@
+// for Bug#: 32428
+import org.aspectj.testing.Tester;
+
+
+public class InnerPointcut {
+ public static void main(String[] args) {
+ Tester.checkEqual(TrackTestCase.note, "ran");
+ }
+
+ pointcut testcutOuter(): within(InnerPointcut);
+
+ static aspect TrackTestCase {
+ static String note = "not run yet";
+ pointcut testcut() : execution(public void mai*(..));
+ before() : testcut() && testcutOuter() {
+ note = "ran";
+ }
+ }
+
+}