]> source.dussan.org Git - aspectj.git/commitdiff
passing tests compiler errors when abstract pointcuts are outside abstract aspects
authorwisberg <wisberg>
Sat, 26 Jul 2003 21:37:38 +0000 (21:37 +0000)
committerwisberg <wisberg>
Sat, 26 Jul 2003 21:37:38 +0000 (21:37 +0000)
tests/ajcTests.xml
tests/errors/AbstractPointcutCE.java [new file with mode: 0644]

index 5cccbc37b9d82b9f66ce2ac91796453ee4369b4c..788451035fb2a475439edc182d3e0e68caad3991 100644 (file)
         <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 (file)
index 0000000..95ffccc
--- /dev/null
@@ -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
+}
+