]> source.dussan.org Git - aspectj.git/commitdiff
347684: testcode
authoraclement <aclement>
Tue, 31 May 2011 22:11:19 +0000 (22:11 +0000)
committeraclement <aclement>
Tue, 31 May 2011 22:11:19 +0000 (22:11 +0000)
tests/src/org/aspectj/systemtest/ajc161/annotationFieldBinding.xml
tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java
tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml

index 00ff8a5f06e0469f7acc95d8d3b54698f5e58a0a..94b99951a9bcfbec6adce7d730fdbef2568956ec 100644 (file)
@@ -39,7 +39,7 @@
    
    <ajc-test dir="features161/optimizedAnnotationBinding" title="case five - not an enum - compiler limitation">
      <compile options="-1.5" files="CaseFive.java">
-       <message kind="error" line="20" text="The field within the annotation must be an enum or string. 'int' is not"/>
+       <message kind="error" line="20" text="The field within the annotation must be an enum, string or int. 'float' is not"/>
      </compile>
    </ajc-test>
    
index eacd2b7ab45262ee77a04d4c691d9803e1c9cb79..74f32e479e23de8ac2c35bd3fad66546c30e320f 100644 (file)
@@ -25,6 +25,30 @@ public class Ajc1612Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
        // runTest("anno copying");
        // }
 
+       public void testBindingInts_347684() {
+               runTest("binding ints");
+       }
+
+       public void testBindingInts_347684_2() {
+               runTest("binding ints - 2");
+       }
+
+       public void testBindingInts_347684_3() {
+               runTest("binding ints - 3");
+       }
+
+       public void testBindingInts_347684_4() {
+               runTest("binding ints - 4");
+       }
+
+       public void testBindingInts_347684_5() {
+               runTest("binding ints - 5");
+       }
+
+       public void testBindingInts_347684_6() {
+               runTest("binding ints - 6");
+       }
+
        public void testIncorrectAnnos_345172() {
                runTest("incorrect annos");
        }
index 2b296fa81d1e24ab1ef2fd87bbe3a68907ba0a36..25b0cfff7a0693fb192431c3abae0456dd39dae1 100644 (file)
@@ -2,6 +2,61 @@
 
 <suite>
 
+<ajc-test dir="bugs1612/pr347684" title="binding ints">
+<compile files="BindingInts.java" options="-1.5"/>
+<run class="BindingInts">
+  <stdout>
+  <line text="execution(void BindingInts.a()) 37"/>
+  </stdout>
+</run>
+</ajc-test>
+
+<ajc-test dir="bugs1612/pr347684" title="binding ints - 2">
+<compile files="BindingInts2.java" options="-1.5"/>
+<run class="BindingInts2">
+  <stdout>
+  <line text="execution(void BindingInts2.a()) 99"/>
+  </stdout>
+</run>
+</ajc-test>
+
+<ajc-test dir="bugs1612/pr347684" title="binding ints - 3">
+<compile files="BindingInts3.java" options="-1.5"/>
+<run class="BindingInts3">
+  <stdout>
+  <line text="execution(void BindingInts3.a()) abc"/>
+  </stdout>
+</run>
+</ajc-test>
+
+<ajc-test dir="bugs1612/pr347684" title="binding ints - 4">
+<compile files="BindingInts4.java" options="-1.5"/>
+<run class="BindingInts4">
+  <stdout>
+  <line text="execution(void BindingInts4.a()) 37 48"/>
+  </stdout>
+</run>
+</ajc-test>
+
+<ajc-test dir="bugs1612/pr347684" title="binding ints - 5">
+<compile files="BindingInts5.java" options="-1.5"/>
+<run class="BindingInts5">
+  <stdout>
+  <line text="execution(void BindingInts5.a()) 37"/>
+  </stdout>
+</run>
+</ajc-test>
+
+
+<ajc-test dir="bugs1612/pr347684" title="binding ints - 6">
+<compile files="BindingInts6.java" options="-1.5"/>
+<run class="BindingInts6">
+  <stdout>
+  <line text="execution(void BindingInts6.a()) 37 1 99"/>
+  </stdout>
+</run>
+</ajc-test>
+
 <ajc-test dir="bugs1612/pr345515" title="anno copying">
 <compile files="Code.java" options="-1.5"/>
 <run class="Code"></run>