aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/ajcTestsFailing.xml7
-rw-r--r--tests/new/AbstractImplementedPointcut.java22
2 files changed, 29 insertions, 0 deletions
diff --git a/tests/ajcTestsFailing.xml b/tests/ajcTestsFailing.xml
index a2441ef78..60e547750 100644
--- a/tests/ajcTestsFailing.xml
+++ b/tests/ajcTestsFailing.xml
@@ -9,4 +9,11 @@
<compile files="Privilege.java"/>
<run class="Privilege"/>
</ajc-test>
+
+ <ajc-test dir="new" pr="36736"
+ title="implemented abstract pointcut">
+ <compile files="AbstractImplementedPointcut.java">
+ <message kind="error" line="14"/>
+ </compile>
+ </ajc-test>
</suite>
diff --git a/tests/new/AbstractImplementedPointcut.java b/tests/new/AbstractImplementedPointcut.java
new file mode 100644
index 000000000..339ab34e0
--- /dev/null
+++ b/tests/new/AbstractImplementedPointcut.java
@@ -0,0 +1,22 @@
+
+/** @testcase PR#36736 implemented abstract pointcut */
+public class AbstractImplementedPointcut {
+ public static void main(String[] args) {
+ new C().go();
+ }
+}
+
+class C {
+ void go(){}
+}
+
+abstract aspect A {
+ abstract pointcut pc() : call(void go()); // CE 14
+}
+
+aspect B extends A {
+ pointcut pc() : call(void go());
+ before() : pc() {
+ throw new Error("do not run");
+ }
+}