aboutsummaryrefslogtreecommitdiffstats
path: root/tests/errors/ClassExtendingAbstractAspectCE.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors/ClassExtendingAbstractAspectCE.java')
-rw-r--r--tests/errors/ClassExtendingAbstractAspectCE.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/errors/ClassExtendingAbstractAspectCE.java b/tests/errors/ClassExtendingAbstractAspectCE.java
new file mode 100644
index 000000000..b00929573
--- /dev/null
+++ b/tests/errors/ClassExtendingAbstractAspectCE.java
@@ -0,0 +1,23 @@
+import org.aspectj.testing.*;
+
+public class ClassExtendingAbstractAspectCE {
+ public static void main(String[] args) {
+ new ClassExtendingAbstractAspectCE().go(args);
+ }
+
+ void go(String[] args) {
+ Extends e = new Extends();
+ Tester.check(false, "shouldn't have compiled!");
+ }
+
+}
+
+abstract aspect Aspect {
+
+}
+
+
+class Extends extends Aspect { // CE 20
+ pointcut p(): call(* *());
+}
+