]> source.dussan.org Git - aspectj.git/commitdiff
257754: decp anno: test and fix
authoraclement <aclement>
Sat, 6 Dec 2008 05:12:43 +0000 (05:12 +0000)
committeraclement <aclement>
Sat, 6 Dec 2008 05:12:43 +0000 (05:12 +0000)
tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java
tests/src/org/aspectj/systemtest/ajc163/ajc163.xml

index 1e878b8605ed2081f4ac85d8964fc2fafa4b8a82..42c90f8386e4f733488cfcd46d143fe1ba7468e0 100644 (file)
     
     <ajc-test dir="java5/decps" title="decps - 3c">
      <compile files="Basic3c.java" options="-1.5">
-       <message kind="error" text="@DeclareParents: defaultImpl=&quot;X$IImpl&quot; has no public no-arg constructor"/>
+       <message kind="error" text="@DeclareParents: defaultImpl=&quot;X$IImpl&quot; has a no argument constructor, but it is of incorrect visibility"/>
         </compile>
     </ajc-test>  
         
     </ajc-test>
         
     <ajc-test dir="bugs150" title="(@Foo *)+ type pattern parse error">
-        <compile files="AnnotationPlusPatternParseError.aj" options="-1.5"/>
+        <compile files="AnnotationPlusPatternParseError.aj" options="-1.5">
+          <message kind="warning" line="19"/>
+        </compile>
     </ajc-test>
 
     <ajc-test dir="bugs150" pr="80571" title="around advice on interface initializer">
index 1f33e5792944cafb6c8647b070a38276383b1156..a403dffa3226d9eee68e135d622aad14a9925618 100644 (file)
@@ -54,9 +54,13 @@ public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
                runTest("incorrect arg ordering anno style - 5");
        }
 
-       // public void testDecpAnnoStyle_pr257754() {
-       // runTest("decp anno style");
-       // }
+       public void testDecpAnnoStyle_pr257754() {
+               runTest("decp anno style");
+       }
+
+       public void testDecpAnnoStyle_pr257754_2() {
+               runTest("decp anno style - 2");
+       }
 
        public void testPoorAtAjIfMessage_pr256458() {
                runTest("poor ataj if message - 1");
index 7a07dff4ad679723997a0cc57c1a463c07f4d184..eb1034a60352fb1867271d16f1a79179d76552de 100644 (file)
     
     <ajc-test dir="bugs163/pr257754" title="decp anno style">
          <compile files="Main.java" options="-1.5"/>
-         <run class="example.Main"/>
+         <run class="example.Main">
+         <stdout>
+         <line text="In doFoo class example.DefaultFoo"/>
+         <line text="Bar"/>
+         </stdout>
+         </run>
+    </ajc-test>
+    
+    <ajc-test dir="bugs163/pr257754" title="decp anno style - 2">
+         <compile files="Main2.java Foo.java DefaultFoo.java" options="-1.5">
+         <message kind="error" text="but it is of incorrect visibility"/>
+         </compile>
     </ajc-test>
     
     <ajc-test dir="bugs163/pr219419" title="incorrect arg ordering anno style">