]> source.dussan.org Git - aspectj.git/commitdiff
fixing bugs
authorjhugunin <jhugunin>
Wed, 8 Jan 2003 02:17:35 +0000 (02:17 +0000)
committerjhugunin <jhugunin>
Wed, 8 Jan 2003 02:17:35 +0000 (02:17 +0000)
tests/ajcTests.xml
tests/ajcTestsFailing.xml
tests/jimTests.xml

index b7d215e53940775d1a829ba5374aa0d28273e9dc..b488f68aff24f814d06b71c7d1881da3b58cdeb2 100644 (file)
       title="decent errors for around return type not matching target point"
       keywords="from-errors">
         <compile files="AroundReturnType.java">
+            <message kind="error" line="3"/>
+            <message kind="error" line="7"/>
             <message kind="error" line="16"/>
             <message kind="error" line="21"/>
         </compile>
         <compile files="InterFieldArrays.java"/>
         <run class="InterFieldArrays"/>
     </ajc-test>
+    
+    <ajc-test dir="new"
+      title="unmatched type name in a declare parents should result in a warning in -Xlint mode"
+      keywords="tofix">
+        <compile options="-Xlint" files="MissingTypeInDeclareParents.java">
+            <message kind="warning" line="20"/>
+        </compile>
+        <run class="MissingTypeInDeclareParents"/>
+    </ajc-test>
+    
+    <ajc-test dir="new" pr="838"
+      title="checking around join point for advice return type - numeric">
+        <compile files="AroundNumericCastCE.java">
+            <message kind="error" line="12"/>
+            <message kind="error" line="17"/>
+        </compile>
+    </ajc-test>
+
+    <ajc-test dir="new" pr="836" title="void around advice without proceed">
+        <compile files="VoidAround.java">
+            <message kind="error" line="11"/>
+            <message kind="error" line="29"/>
+        </compile>
+    </ajc-test>
+    
+    <ajc-test dir="new/PR852" pr="852"
+      title="declaring method on superclass and subclass">
+        <compile files="aspectPack/Aspect.java,target/SubClass.java,target/SuperClass.java">
+          <dir-changes added="target.SubClass,target.SuperClass"/>
+        </compile>
+        <run class="aspectPack.Aspect"/>
+    </ajc-test>
+    
+    <!-- Can't handle packages named 'aspect' in parser
+    -->
+    <ajc-test dir="new/PR852" pr="852"
+      title="declaring method on superclass and subclass"
+      keywords="knownLimitation">
+        <compile files="aspect/Aspect.java,target/SubClass.java,target/SuperClass.java">
+          <dir-changes added="target.SubClass,target.SuperClass"/>
+        </compile>
+        <run class="aspect.Aspect"/>
+    </ajc-test>
+    
+       <!-- The correct behavior of this program is to produce an Xlint
+            warning for the lack of access to the needed type, and then
+            to generate code with link errors that will throw a NoSuchMethodError
+            when run.
+       -->
+    <ajc-test dir="bugs" pr="906"
+      title="privileged access to code outside the control of the compiler">
+        <compile files="PrivilegeBeyondScope.java" options="-Xlint:warning">
+                 <message kind="warning" line="23"/>
+        </compile>
+    </ajc-test>    
 </suite>
index a0f890f7a5507f06451522431bb040aa3bd6964e..829e26973d71c731d610ca13974adc6e12b144fc 100644 (file)
@@ -2,16 +2,9 @@
 <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
 
 <suite>
-
-    <ajc-test dir="new"
-      title="unmatched type name in a declare parents should result in a warning in -Xlint mode"
-      keywords="tofix">
-        <compile options="-Xlint" files="MissingTypeInDeclareParents.java">
-            <message kind="warning" line="20"/>
-        </compile>
-        <run class="MissingTypeInDeclareParents"/>
-    </ajc-test>
-
+       <!-- This is an open question.  Is it better for aspect static initializers
+            to run before or after the instance is constructed???
+       -->
     <ajc-test dir="new" pr="804"
       title="aspect static initializers should run before instance constructed"
       keywords="tofix">
         <run class="AspectStaticInit"/>
     </ajc-test>
 
-
-    <ajc-test dir="new" pr="838"
-      title="checking around join point for advice return type - numeric"
-      keywords="tofix" comment="may need to fix error line when bug is fixed">
-        <compile files="AroundNumericCastCE.java">
-            <message kind="error" line="17"/>
-        </compile>
-    </ajc-test>
-
-    <ajc-test dir="new" pr="836" title="void around advice without proceed"
-      keywords="tofix">
-        <compile files="VoidAround.java">
-            <message kind="error" line="29"/>
-        </compile>
-    </ajc-test>
-
-    <ajc-test dir="new/PR852" pr="852"
-      title="declaring method on superclass and subclass">
-        <compile files="aspect/Aspect.java,target/SubClass.java,target/SuperClass.java">
-          <dir-changes added="target.SubClass,target.SuperClass"/>
-        </compile>
-        <run class="aspect.Aspect"/>
-    </ajc-test>
-
     <ajc-test dir="new/PR862" pr="862"
       title="import any inner from interface implementor"
       keywords="purejava">
         </compile>
         <run class="pack.ImportInnerFromInterfaceImplementor"/>
     </ajc-test>
-
-    <ajc-test dir="bugs" pr="906"
-      title="privileged access to code outside the control of the compiler">
-        <compile files="PrivilegeBeyondScope.java">
-                 <message kind="error" line="21"/>
-        </compile>
-        <run class="PrivilegeBeyondScope"/>
-    </ajc-test>
     
     <ajc-test dir="new"
       title="incompatible advice throws clause are a compile-time error"
index 4421c26ad12dfeb1e3fcca60dbe4010b1275e98e..b8618fb395bd653428a268aacb782c00cf0d8108 100644 (file)
@@ -1,13 +1,19 @@
 <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
 <suite>
 
-    <ajc-test dir="new"
-      title="unmatched type name in a declare parents should result in a warning in -Xlint mode"
-      keywords="tofix">
-        <compile options="-Xlint" files="MissingTypeInDeclareParents.java">
-            <message kind="warning" line="20"/>
+
+    <ajc-test dir="errors" pr="244"
+      title="decent errors for around return type not matching target point"
+      keywords="from-errors">
+        <compile files="AroundReturnType.java">
+            <message kind="error" line="3"/>
+            <message kind="error" line="7"/>
+            <message kind="error" line="16"/>
+            <message kind="error" line="21"/>
         </compile>
-        <run class="MissingTypeInDeclareParents"/>
     </ajc-test>
+    
+    <!--
 
+       -->
 </suite>
\ No newline at end of file