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.

ajc164.xml 9.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs164/pr266564" title="annotation style long">
  4. <compile files="AA.java" options="-1.5"/>
  5. <run class="business.AA"/>
  6. </ajc-test>
  7. <ajc-test dir="bugs164/pr266564" title="annotation style long - 2">
  8. <compile files="CC.java" options="-1.5"/>
  9. <run class="business.CC"/>
  10. </ajc-test>
  11. <ajc-test dir="bugs164/pr266420" title="unused private warning">
  12. <compile files="A.java" options="-1.5 -warn:unusedPrivate"/>
  13. </ajc-test>
  14. <ajc-test dir="bugs164/pr266420" title="unused private warning - 2">
  15. <compile files="B.java" options="-1.5 -warn:unusedPrivate">
  16. <message kind="warning" text="The field B.i is never read locally"/>
  17. </compile>
  18. </ajc-test>
  19. <ajc-test dir="bugs164/pr266420" title="unused private warning - 3">
  20. <compile files="C.java" options="-1.5 -warn:unusedPrivate">
  21. <message kind="warning" text="The field C.j is never read locally"/>
  22. </compile>
  23. </ajc-test>
  24. <ajc-test dir="bugs164/pr265729" title="aspectpath model">
  25. <compile files="Aspect.java Orange.java Strawberry.java Fruit.java" outjar="library.jar" options="-emacssym"/>
  26. <compile files="Orange.java Strawberry.java Fruit.java" aspectpath="library.jar" options="-emacssym"/>
  27. <!--
  28. -->
  29. </ajc-test>
  30. <ajc-test dir="bugs164/pr266220" title="generics and aop.xml">
  31. <compile files="Code.java"/>
  32. <compile files="Isolator.java" outjar="aspects.jar" options="-1.5"/>
  33. <run class="Code" classpath="aspects.jar" ltw="aop.xml">
  34. <stdout>
  35. <line text="execution(void Code.main(String[]))"/>
  36. <line text="execution(void Code.run())"/>
  37. <line text="running..."/>
  38. </stdout>
  39. </run>
  40. </ajc-test>
  41. <ajc-test dir="bugs164/pr266165" title="optimizing if for constant reference - 1">
  42. <compile files="NeverWeave.java" options="-1.5 -Xlint:ignore -showWeaveInfo"/>
  43. </ajc-test>
  44. <ajc-test dir="bugs164/pr266165" title="optimizing if for constant reference - 2">
  45. <compile files="AlwaysWeave.java" options="-1.5 -showWeaveInfo">
  46. <message kind="weave" text="Join point"/>
  47. </compile>
  48. </ajc-test>
  49. <ajc-test dir="bugs164/pr266165" title="optimizing if for constant reference - 3">
  50. <compile files="NeverWeave2.java" options="-1.5 -Xlint:ignore -showWeaveInfo"/>
  51. </ajc-test>
  52. <ajc-test dir="bugs164/pr266165" title="optimizing if for constant reference - 4">
  53. <compile files="AlwaysWeave2.java" options="-1.5 -showWeaveInfo">
  54. <message kind="weave" text="Join point"/>
  55. </compile>
  56. </ajc-test>
  57. <ajc-test dir="bugs164/pr265695" title="anno inherited">
  58. <compile files="Asp.aj" options="-showWeaveInfo -1.5">
  59. <message kind="warning" line="22" text="advice defined"/>
  60. <message kind="warning" line="24" text="advice defined"/>
  61. <message kind="warning" line="26" text="advice defined"/>
  62. </compile>
  63. </ajc-test>
  64. <ajc-test dir="bugs164/pr265695" title="new syntax for inherited anno - 1">
  65. <compile files="AspNew.aj" options="-1.5 -showWeaveInfo">
  66. <message kind="weave" text="Join point"/>
  67. </compile>
  68. </ajc-test>
  69. <ajc-test dir="bugs164/pr265695" title="new syntax for inherited anno - 3">
  70. <compile files="AspNew2.aj" options="-1.5 -showWeaveInfo">
  71. <message kind="weave" text="Join point"/>
  72. </compile>
  73. </ajc-test>
  74. <ajc-test dir="bugs164/pr265418" title="varargs">
  75. <compile files="A.java" options="-1.5"/>
  76. <run class="A">
  77. <stdout>
  78. <line text="varargs call(void A.a(Object[]))"/>
  79. <line text="varargs call(void A.b(String[]))"/>
  80. <line text="varargs call(void A.c(Integer[]))"/>
  81. <line text="arrays call(void A.d(Object[]))"/>
  82. <line text="arrays call(void A.e(String[]))"/>
  83. <line text="arrays call(void A.f(Integer[]))"/>
  84. </stdout>
  85. </run>
  86. </ajc-test>
  87. <ajc-test dir="bugs164" title="parser problem for array subtypes">
  88. <compile files="PR148508.java"/>
  89. <run class="PR148508">
  90. </run>
  91. </ajc-test>
  92. <ajc-test dir="bugs164/pr265360" title="incorrect resolution of Date">
  93. <compile files="Foo.java Main.java" options="-1.5">
  94. <message kind="warning" text="no match for this type name: Date "/>
  95. <message kind="warning" test="advice defined in"/>
  96. </compile>
  97. </ajc-test>
  98. <ajc-test dir="bugs164/pr233032" title="dual preClinit">
  99. <compile files="A.java" options="-1.5"/>
  100. <run class="A"/>
  101. </ajc-test>
  102. <ajc-test dir="features164/aopconfig/one" title="aop config - 1">
  103. <compile files="A.java A2.java B.java foo.xml" options="-1.5 -showWeaveInfo -xmlConfigured">
  104. <message kind="weave" text="Join point 'staticinitialization(void A.&lt;clinit&gt;())' in Type 'A' (A.java:1) advised by before advice from 'A' (A.java:2)"/>
  105. <message kind="weave" text="Join point 'staticinitialization(void A2.&lt;clinit&gt;())' in Type 'A2' (A2.java:1) advised by before advice from 'A' (A.java:2)"/>
  106. <message kind="weave" text="Join point 'staticinitialization(void B.&lt;clinit&gt;())' in Type 'B' (B.java:1) advised by before advice from 'A' (A.java:2)"/>
  107. </compile>
  108. </ajc-test>
  109. <ajc-test dir="features164/aopconfig/one" title="aop config - 2">
  110. <compile files="A.java A2.java B.java B2.java foo2.xml" options="-1.5 -showWeaveInfo -xmlConfigured">
  111. <message kind="weave" text="Join point 'staticinitialization(void B.&lt;clinit&gt;())' in Type 'B' (B.java:1) advised by before advice from 'A' (A.java:2)"/>
  112. </compile>
  113. </ajc-test>
  114. <ajc-test dir="features164/aopconfig/two" title="aop config - 3">
  115. <!-- type pattern in the scope in foo.xml is complete nonsense -->
  116. <compile files="A.java B.java foo.xml" options="-1.5 -Xlint:ignore -xmlConfigured">
  117. <message kind="error" text="Unable to parse scope as type pattern"/>
  118. </compile>
  119. </ajc-test>
  120. <ajc-test dir="bugs164/pr263310" title="inner handles">
  121. <compile files="HandleTestingAspect.java" options="-1.5 -emacssym -Xlint:ignore"/>
  122. </ajc-test>
  123. <ajc-test dir="bugs164/pr263666" title="around advice handles">
  124. <compile files="x/A.java x/B.java x/OverrideOptions.aj" options="-1.5 -emacssym"/>
  125. </ajc-test>
  126. <ajc-test dir="bugs164" title="ajcthis not read">
  127. <compile files="pr195090.java" options="-1.5 -warn:+unusedArgument">
  128. </compile>
  129. </ajc-test>
  130. <ajc-test dir="bugs164/pr256779" title="anno decprecedence">
  131. <compile files="ThisAspect.java OtherAspect.java" options="-1.5"/>
  132. <run class="com.ThisAspect" ltw="aop.xml"/>
  133. </ajc-test>
  134. <ajc-test dir="bugs164/pr262905" title="recursive cflow">
  135. <compile files="A.java" options="-1.5">
  136. <message kind="warning" line="5" text="advice defined"/>
  137. <message kind="error" line="3" text="circular"/>
  138. </compile>
  139. </ajc-test>
  140. <ajc-test dir="bugs164/pr194314" title="broken lvt - 1">
  141. <compile files="Service.java IService.java Main.java ServiceInterceptor.java" options="-1.5"/>
  142. </ajc-test>
  143. <ajc-test dir="bugs164/pr194314" title="broken lvt - 2">
  144. <compile files="Service.java IService.java Main.java ServiceInterceptorCodeStyle.java" options="-1.5"/>
  145. </ajc-test>
  146. <ajc-test dir="bugs164/pr194314" title="broken lvt - 3">
  147. <compile files="ITDOne.java" options="-1.5"/>
  148. </ajc-test>
  149. <ajc-test dir="bugs164/pr262509" title="debugging before advice">
  150. <compile files="Foo.java" options="-1.5"/>
  151. </ajc-test>
  152. <ajc-test dir="bugs164/pr262509" title="debugging before advice - 2">
  153. <compile files="Foo2.java" options="-1.5 -preserveAllLocals"/>
  154. </ajc-test>
  155. <ajc-test dir="bugs164/pr262509" title="debugging before advice - 3">
  156. <compile files="Foo3.java" options="-1.5 -preserveAllLocals"/>
  157. </ajc-test>
  158. <ajc-test dir="bugs164/pr246393" title="rogue errors - 1">
  159. <compile files="D.java" options="-1.5">
  160. <message kind="error" line="2" text="error on token"/>
  161. </compile>
  162. </ajc-test>
  163. <ajc-test dir="bugs164/pr262257" title="name clash">
  164. <compile files="C.java" options="-1.5">
  165. </compile>
  166. </ajc-test>
  167. <ajc-test dir="bugs164/pr260384" title="compiling spring">
  168. <compile files="Broken.java" options="-1.5">
  169. </compile>
  170. </ajc-test>
  171. <ajc-test dir="bugs164/pr260384" title="compiling spring - 2">
  172. <compile files="Broken2.java" options="-1.5">
  173. </compile>
  174. </ajc-test>
  175. <ajc-test dir="bugs164/pr260384" title="compiling spring - 3">
  176. <compile files="C.java" options="-1.5 -emacssym"/>
  177. </ajc-test>
  178. <ajc-test dir="bugs164/pr260384" title="compiling spring - 4">
  179. <compile files="D.java" options="-1.5">
  180. </compile>
  181. </ajc-test>
  182. <ajc-test dir="bugs164/pr164016" title="ataspectj decp 164016">
  183. <compile files="Code.aj" options="-1.5"/>
  184. <run class="test.Code"/>
  185. </ajc-test>
  186. <ajc-test dir="bugs164/pr164016" title="ataspectj decp 164016 - 2">
  187. <compile files="Code.java TargetBad.java TargetGood.java" aspectpath="code.jar" options="-1.5"/>
  188. <run class="test.Code"/>
  189. </ajc-test>
  190. <ajc-test dir="bugs164/pr258788" title="ataspectj decp 258788">
  191. <compile files="NameAware.java NameManager.java NameManagerImpl.java StartClass.java TargetClass.java TestAspect.java" options="-1.5"/>
  192. <run class="com.StartClass"/>
  193. </ajc-test>
  194. </suite>