aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-03-08 19:00:52 +0000
committerwisberg <wisberg>2003-03-08 19:00:52 +0000
commit93dbd9fcd8b5388f726e8f39fee98a3d04c870b7 (patch)
treeb71430b804ee68b19b0cfb52b889adaf25005636
parent5ae6445eff68b511f28bbfdc2dbb6411c62dfdf0 (diff)
downloadaspectj-93dbd9fcd8b5388f726e8f39fee98a3d04c870b7.tar.gz
aspectj-93dbd9fcd8b5388f726e8f39fee98a3d04c870b7.zip
@testcase inter-type declaration of void field
-rw-r--r--tests/ajcTestsFailing.xml14
-rw-r--r--tests/errors/VoidFieldDeclarationCE.java8
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/ajcTestsFailing.xml b/tests/ajcTestsFailing.xml
index c87051140..335649e9d 100644
--- a/tests/ajcTestsFailing.xml
+++ b/tests/ajcTestsFailing.xml
@@ -65,4 +65,18 @@
<run class="ConstructorDeclaration"/>
</ajc-test>
+ <ajc-test dir="errors" keywords="error"
+ title="class extending abstract aspect">
+ <compile files="ClassExtendingAbstractAspectCE.java">
+ <message kind="error" line="20"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="errors" keywords="error"
+ title="inter-type declaration of void field">
+ <compile files="VoidFieldDeclarationCE.java">
+ <message kind="error" line="7"/>
+ </compile>
+ </ajc-test>
+
</suite>
diff --git a/tests/errors/VoidFieldDeclarationCE.java b/tests/errors/VoidFieldDeclarationCE.java
new file mode 100644
index 000000000..58124649e
--- /dev/null
+++ b/tests/errors/VoidFieldDeclarationCE.java
@@ -0,0 +1,8 @@
+
+/** @testcase inter-type declaration of void field */
+public class VoidFieldDeclarationCE {
+}
+
+aspect A {
+ public void VoidFieldDeclarationCE.bug; // CE 46 invalid field type
+}