You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ajc1612.xml 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs1612/pr349398" title="duplicate methods">
  4. <compile files="DataGenerator.java CacheAspect.java DataGeneratorCacheAspect.java DataGeneratorTest.java" options="-1.5"/>
  5. <run class="DataGeneratorTest">
  6. </run>
  7. </ajc-test>
  8. <ajc-test dir="bugs1612/pr347684" title="binding ints">
  9. <compile files="BindingInts.java" options="-1.5"/>
  10. <run class="BindingInts">
  11. <stdout>
  12. <line text="execution(void BindingInts.a()) 37"/>
  13. </stdout>
  14. </run>
  15. </ajc-test>
  16. <ajc-test dir="bugs1612/pr347684" title="binding ints - 2">
  17. <compile files="BindingInts2.java" options="-1.5"/>
  18. <run class="BindingInts2">
  19. <stdout>
  20. <line text="execution(void BindingInts2.a()) 99"/>
  21. </stdout>
  22. </run>
  23. </ajc-test>
  24. <ajc-test dir="bugs1612/pr347684" title="binding ints - 3">
  25. <compile files="BindingInts3.java" options="-1.5"/>
  26. <run class="BindingInts3">
  27. <stdout>
  28. <line text="execution(void BindingInts3.a()) abc"/>
  29. </stdout>
  30. </run>
  31. </ajc-test>
  32. <ajc-test dir="bugs1612/pr347684" title="binding ints - 4">
  33. <compile files="BindingInts4.java" options="-1.5"/>
  34. <run class="BindingInts4">
  35. <stdout>
  36. <line text="execution(void BindingInts4.a()) 37 48"/>
  37. </stdout>
  38. </run>
  39. </ajc-test>
  40. <ajc-test dir="bugs1612/pr347684" title="binding ints - 5">
  41. <compile files="BindingInts5.java" options="-1.5"/>
  42. <run class="BindingInts5">
  43. <stdout>
  44. <line text="execution(void BindingInts5.a()) 37"/>
  45. </stdout>
  46. </run>
  47. </ajc-test>
  48. <ajc-test dir="bugs1612/pr347684" title="binding ints - 6">
  49. <compile files="BindingInts6.java" options="-1.5"/>
  50. <run class="BindingInts6">
  51. <stdout>
  52. <line text="execution(void BindingInts6.a()) 37 1 99"/>
  53. </stdout>
  54. </run>
  55. </ajc-test>
  56. <ajc-test dir="bugs1612/pr345515" title="anno copying">
  57. <compile files="Code.java" options="-1.5"/>
  58. <run class="Code"></run>
  59. </ajc-test>
  60. <ajc-test dir="bugs1612/pr327867" title="synthetic methods">
  61. <compile files="Foo.java" options="-1.5 -showWeaveInfo">
  62. <message kind="weave" text="Join point 'method-execution(void Foo.main(java.lang.String[]))' in Type 'Foo' (Foo.java:3) advised by before advice from 'X' (Foo.java:17)"/>
  63. <message kind="weave" text="Join point 'method-execution(void Foo.m())' in Type 'Foo' (Foo.java:7) advised by before advice from 'X' (Foo.java:17)"/>
  64. </compile>
  65. <run class="Foo"/>
  66. </ajc-test>
  67. <ajc-test dir="bugs1612/pr345172" title="incorrect annos">
  68. <compile files="InterType.java" options="-1.5 -showWeaveInfo">
  69. <message kind="weave" text="Join point 'method-execution(void InterType$InterTypeIfc.m1(int))' in Type 'InterType' (InterType.java:21) advised by around advice from 'InterType$AroundMethod' (InterType.java:12)"/>
  70. <!--
  71. <message kind="weave" text="Join point 'method-execution(void InterType$InterTypeIfc.m1(int, int))' in Type 'InterType' (InterType.java:24) advised by around advice from 'InterType$AroundMethod' (InterType.java:12)"/>
  72. <message kind="weave" text="Join point 'method-execution(void InterType.m1(int))' in Type 'InterType' (InterType.java:28) advised by around advice from 'InterType$AroundMethod' (InterType.java:12)"/>
  73. -->
  74. <message kind="weave" text="Type 'InterType$InterTypeIfc' (InterType.java) has intertyped method from 'InterType' (InterType.java:'void InterType$InterTypeIfc.m1(int)')"/>
  75. <message kind="weave" text="Type 'InterType$InterTypeIfc' (InterType.java) has intertyped method from 'InterType' (InterType.java:'void InterType$InterTypeIfc.m1(int, int)')"/>
  76. </compile>
  77. <run class="InterType"/>
  78. </ajc-test>
  79. <ajc-test dir="bugs1612/pr345172" title="incorrect annos 2">
  80. <compile files="InterType2.java" options="-1.5">
  81. </compile>
  82. <run class="InterType2">
  83. <stdout>
  84. <line text="execution(void InterType2.InterTypeIfc.m1(int))"/>
  85. </stdout></run>
  86. </ajc-test>
  87. <ajc-test dir="bugs1612/pr345172" title="incorrect annos 3">
  88. <compile files="InterType3.java" options="-1.5">
  89. </compile>
  90. <run class="InterType3">
  91. <stdout>
  92. <line text="execution(void InterType3.InterTypeIfc.m1(int, String))"/>
  93. </stdout></run>
  94. </ajc-test>
  95. <ajc-test dir="bugs1612/pr328099" title="signed jar ltw">
  96. <compile files="X.java" classpath="code.jar"/>
  97. <run class="foo.bar.FooLaunch" ltw="aop.xml" classpath="$sandbox/code.jar">
  98. <stdout>
  99. <line text="pre...Foo.bar()...post"/>
  100. </stdout>
  101. </run>
  102. </ajc-test>
  103. <ajc-test dir="bugs1612/pr315398" title="verifyerror">
  104. <compile files="Code.java" options="-1.5">
  105. </compile>
  106. <run class="Code">
  107. <stdout>
  108. <line text="1"/>
  109. <line text="advice"/>
  110. <line text="2"/>
  111. </stdout></run>
  112. </ajc-test>
  113. <ajc-test dir="bugs1612/pr315398" title="verifyerror - 2">
  114. <compile files="Code2.java" options="-1.5">
  115. </compile>
  116. <run class="Code2"></run>
  117. </ajc-test>
  118. <ajc-test dir="bugs1612/pr335810" title="rawtype warning">
  119. <compile files="One.java" options="-1.5 -warn:+raw -warn:+warningToken">
  120. </compile>
  121. </ajc-test>
  122. <ajc-test dir="bugs1612/pr327134" title="rawtype pointcut">
  123. <compile files="Code.java" options="-1.5 -warn:+raw -warn:+warningToken">
  124. </compile>
  125. </ajc-test>
  126. <ajc-test dir="bugs1612/pr344005" title="decp generics">
  127. <compile files="Anno.java Types.java Azpect.java" options="-1.5 -showWeaveInfo">
  128. <message kind="weave" text="XX"/>
  129. </compile>
  130. </ajc-test>
  131. <ajc-test dir="bugs1612/pr343051" title="illegalaccesserror">
  132. <compile files="Code.java Code2.java Azpect.java" options="-1.5"/>
  133. <run class="p.Code">
  134. <stdout>
  135. <line text="abc"/>
  136. </stdout>
  137. </run>
  138. </ajc-test>
  139. <ajc-test dir="bugs1612/pr339974" title="itit npe">
  140. <compile files="City.java TrafficCalculator.java" options="-1.5">
  141. <message kind="error" text="The nested type TrafficCalculator cannot hide an enclosing type"/>
  142. </compile>
  143. </ajc-test>
  144. <ajc-test dir="bugs1612/pr342605" title="noimporterror">
  145. <compile files="Code.java" options="-1.5 -noImportError"/>
  146. <run class="Code"/>
  147. </ajc-test>
  148. <ajc-test dir="bugs1612/pr342323" title="clashing local types">
  149. <compile files="Runner.java Bean.java Azpect.java" options="-1.5"/>
  150. <run class="ppp.Runner">
  151. <stdout>
  152. <line text="Calling regular method"/>
  153. <line text="class"/>
  154. <line text="Calling itd method"/>
  155. <line text="aspect foo"/>
  156. </stdout>
  157. </run>
  158. </ajc-test>
  159. <ajc-test dir="bugs1612/pr338175" title="itit">
  160. <compile files="pack1/Aspect.java pack2/Java.java pack2/Java2.java" options="-1.5">
  161. <message kind="error" text="Duplicate nested type ITIT"/>
  162. <message kind="error" text="can't determine modifiers"/>
  163. </compile>
  164. </ajc-test>
  165. <ajc-test dir="bugs1612/pr292239" title="throws clause">
  166. <compile files="Code.java" options="-1.5 -showWeaveInfo">
  167. <message kind="weave" text="Join point 'method-execution(void mypackage.Code.n())' in Type 'mypackage.Code' (Code.java:19) advised by afterThrowing advice from 'mypackage.Azpect' (Code.java:9)"/>
  168. </compile>
  169. <run class="mypackage.Code">
  170. <stdout>
  171. <line text="caught it"/>
  172. <line text="done"/>
  173. </stdout>
  174. </run>
  175. </ajc-test>
  176. <ajc-test dir="bugs1612/pr292239" title="throws clause - 2">
  177. <compile files="Code2.java" options="-1.5 -showWeaveInfo">
  178. <message kind="weave" text="Join point 'method-execution(void mypackage.Code2.n2())' in Type 'mypackage.Code2' (Code2.java:17) advised by afterThrowing advice from 'mypackage.Azpect' (Code2.java:7)"/>
  179. </compile>
  180. <run class="mypackage.Code2">
  181. <stdout>
  182. <line text="caught it: execution(void mypackage.Code2.n2())"/>
  183. <line text="done"/>
  184. </stdout>
  185. </run>
  186. </ajc-test>
  187. <!--
  188. <ajc-test dir="bugs1611/pr336136" title="itit">
  189. <compile files="Country_Roo_Op4j.java">
  190. <message kind="error" text="The import com.foo cannot be resolved" line="1"/>
  191. <message kind="error" text="The import org.javaruntype cannot be resolved" line="3"/>
  192. <message kind="error" text="The import org.op4j cannot be resolved" line="4"/>
  193. <message kind="error" text="The import org.op4j cannot be resolved" line="5"/>
  194. <message kind="error" text="Country cannot be resolved to a type" line="9"/>
  195. <message kind="error" text="Function cannot be resolved to a type" line="11"/>
  196. <message kind="error" text="can't determine modifiers of missing type Country_Roo_Op4j$Keys"/>
  197. </compile>"
  198. </ajc-test>
  199. -->
  200. </suite>