summaryrefslogtreecommitdiffstats
path: root/tests/new
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new')
-rw-r--r--tests/new/AbstractImplementedPointcut.java22
1 files changed, 22 insertions, 0 deletions
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");
+ }
+}