From 58a28cc314b170d0f9e3bfaffb8ee813829562f7 Mon Sep 17 00:00:00 2001 From: wisberg Date: Tue, 22 Apr 2003 00:06:39 +0000 Subject: [PATCH] @testcase PR#36736 implemented abstract pointcut --- tests/ajcTestsFailing.xml | 7 +++++++ tests/new/AbstractImplementedPointcut.java | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 tests/new/AbstractImplementedPointcut.java 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 @@ + + + + + + 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"); + } +} -- 2.39.5