aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-04-22 00:06:39 +0000
committerwisberg <wisberg>2003-04-22 00:06:39 +0000
commit58a28cc314b170d0f9e3bfaffb8ee813829562f7 (patch)
tree33e3629adaaf5b04d88949e6116e65c03cd5f21b /tests/new
parenta1f90ec4260a3d328ac7209044ee34f72ed06d9f (diff)
downloadaspectj-58a28cc314b170d0f9e3bfaffb8ee813829562f7.tar.gz
aspectj-58a28cc314b170d0f9e3bfaffb8ee813829562f7.zip
@testcase PR#36736 implemented abstract pointcut
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");
+ }
+}