]> source.dussan.org Git - aspectj.git/commitdiff
better error lines
authorjhugunin <jhugunin>
Mon, 23 Dec 2002 23:10:37 +0000 (23:10 +0000)
committerjhugunin <jhugunin>
Mon, 23 Dec 2002 23:10:37 +0000 (23:10 +0000)
forcing a few tests to use -1.4 for correct declaring type at call sites

tests/ajcTests.xml

index 653c3bb64ab03657caa89a0514bc05518e77c786..70fe3204172119496cdecdfc4f519706a03fee1a 100644 (file)
     <ajc-test dir="errors" title="multiple conflicting introductions"
       keywords="from-errors">
         <compile files="MultipleIntros.java">
+            <message kind="error" line="5"/>
             <message kind="error" line="16"/>
             <message kind="error" line="18"/>
             <message kind="error" line="19"/>
       title="should give an error for introducing two members with the same name"
       keywords="from-errors">
         <compile files="TwoIntros.java">
+            <message kind="error" line="10"/>
             <message kind="error" line="14"/>
             <message kind="error" line="16"/>
         </compile>
         <run class="ObjectForInt"/>
     </ajc-test>
 
+   <!-- This test case requires bytecode generated according to the declaring type
+        rules in JLS 2nd edition.  -1.4 must be passed to the eclipse compiler for
+        this behavior. -->
     <ajc-test dir="new"
       title="Does the matrix coverage thing for the new method signatures"
       keywords="from-resolved_10x">
-        <compile files="MethodSignatures.java"/>
-        <run class="MethodSignatures"/>
-    </ajc-test>
+        <compile files="MethodSignatures.java" options="-1.4"/>
+        <run class="MethodSignatures" vm="1.4"/>
+    </ajc-test>  
 
     <ajc-test dir="new"
       title="join points in static/dynamic initializers aren't showing up."
         <run class="Gets"/>
     </ajc-test>
 
+   <!-- This test case requires bytecode generated according to the declaring type
+        rules in JLS 2nd edition.  -1.4 must be passed to the eclipse compiler for
+        this behavior. -->
     <ajc-test dir="new" title="correct types of parameters at call-sites"
       keywords="from-resolved_10x">
-        <compile files="CallTypes.java"/>
-        <run class="CallTypes"/>
+        <compile files="CallTypes.java" options="-1.4"/>
+        <run class="CallTypes" vm="1.4"/>
     </ajc-test>
 
     <ajc-test dir="new"
         <run class="CflowBelowTest"/>
     </ajc-test>
 
+   <!-- This test case requires bytecode generated according to the declaring type
+        rules in JLS 2nd edition.  -1.4 must be passed to the eclipse compiler for
+        this behavior.  That means that this case will only work under 1.4.  -->
     <ajc-test dir="new"
       title="target type matching with messy interface hierarchies"
       keywords="from-resolved_10x">
-        <compile files="CallTypesI.java"/>
-        <run class="CallTypesI"/>
+        <compile files="CallTypesI.java" options="-1.4"/>
+        <run class="CallTypesI" vm="1.4"/>
     </ajc-test>
 
     <ajc-test dir="new" pr="490"
       keywords="from-resolved_10x">
         <compile files="MethodConflictsCF.java">
             <message kind="error" line="8"/>
+            <message kind="error" line="20"/>
+            <message kind="error" line="28"/>
         </compile>
-    </ajc-test>
+    </ajc-test>  
 
     <ajc-test dir="new" title="AspectOf available for different aspect types"
       keywords="from-resolved_10x">