]> source.dussan.org Git - aspectj.git/commitdiff
@testcase PR#36736 implemented abstract pointcut
authorwisberg <wisberg>
Tue, 22 Apr 2003 00:06:39 +0000 (00:06 +0000)
committerwisberg <wisberg>
Tue, 22 Apr 2003 00:06:39 +0000 (00:06 +0000)
tests/ajcTestsFailing.xml
tests/new/AbstractImplementedPointcut.java [new file with mode: 0644]

index a2441ef7841141c10cbeec924f244487f083c235..60e5477505201d4f021492c12210f72a87ecf507 100644 (file)
@@ -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 (file)
index 0000000..339ab34
--- /dev/null
@@ -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");
+    }
+}