aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-07-26 21:37:38 +0000
committerwisberg <wisberg>2003-07-26 21:37:38 +0000
commit56094d51e65add9b2524dbb440a223e6904ae993 (patch)
tree5ba3fb34288e45b4a65ddae5e946b2cf3e8d0103
parent2502ee5106921a6947e3470d08e30a0734a4d805 (diff)
downloadaspectj-56094d51e65add9b2524dbb440a223e6904ae993.tar.gz
aspectj-56094d51e65add9b2524dbb440a223e6904ae993.zip
passing tests compiler errors when abstract pointcuts are outside abstract aspects
-rw-r--r--tests/ajcTests.xml9
-rw-r--r--tests/errors/AbstractPointcutCE.java12
2 files changed, 21 insertions, 0 deletions
diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml
index 5cccbc37b..788451035 100644
--- a/tests/ajcTests.xml
+++ b/tests/ajcTests.xml
@@ -6462,4 +6462,13 @@
<compile files="ClassLiteralField.java" options="-source14"/>
<run class="ClassLiteralField"/>
</ajc-test>
+
+ <ajc-test dir="errors"
+ title="compile error expected for abstract pointcut outside abstract aspect">
+ <compile files="AbstractPointcutCE.java">
+ <message kind="error" line="5"/>
+ <message kind="error" line="10"/>
+ </compile>
+ </ajc-test>
+
</suite>
diff --git a/tests/errors/AbstractPointcutCE.java b/tests/errors/AbstractPointcutCE.java
new file mode 100644
index 000000000..95ffccc08
--- /dev/null
+++ b/tests/errors/AbstractPointcutCE.java
@@ -0,0 +1,12 @@
+
+
+/** @testcase compile error expected for abstract pointcut outside abstract aspect */
+class C {
+ abstract pointcut pc(); // CE 5
+}
+
+
+aspect B {
+ abstract pointcut pc(); // CE 10
+}
+