]> source.dussan.org Git - aspectj.git/commitdiff
Tests for Bugzilla Bug 59778
authoraclement <aclement>
Fri, 7 May 2004 08:21:22 +0000 (08:21 +0000)
committeraclement <aclement>
Fri, 7 May 2004 08:21:22 +0000 (08:21 +0000)
   InterTypeMethodDeclaration.java:104

tests/ajcTests.xml
tests/bugs/compileOrdering/B.java [new file with mode: 0644]
tests/bugs/compileOrdering/D.java [new file with mode: 0644]

index 3f9e7cc1ce1de3be0a2cc161bb56fbc65ecd76de..0c64c5dd2ffb780327357c8fe27dfd2add86d623 100644 (file)
         </compile>
     </ajc-test>
        
+   <ajc-test dir="bugs/compileOrdering" 
+               pr="59778"
+               title=" InterTypeMethodDeclaration.java:104">
+        <compile files="B.java,D.java" >
+          <message kind="error" line="2" file="B.java"/>
+        </compile>
+        <compile files="D.java,B.java">
+          <message kind="error" line="2" file="B.java"/>
+        </compile>
+    </ajc-test>
 </suite>
diff --git a/tests/bugs/compileOrdering/B.java b/tests/bugs/compileOrdering/B.java
new file mode 100644 (file)
index 0000000..faf391c
--- /dev/null
@@ -0,0 +1,6 @@
+public abstract aspect B {
+  public void C.method(Serializable s) { //error: Serializable not imported
+  }
+}
+class C {
+}
diff --git a/tests/bugs/compileOrdering/D.java b/tests/bugs/compileOrdering/D.java
new file mode 100644 (file)
index 0000000..324c50e
--- /dev/null
@@ -0,0 +1,2 @@
+class D { }
+