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.

преди 18 години
преди 18 години
преди 18 години
преди 18 години
преди 17 години
преди 18 години
преди 18 години
преди 18 години
преди 18 години
преди 18 години
преди 18 години
преди 18 години
преди 18 години
преди 18 години
преди 18 години
преди 18 години
преди 18 години
преди 18 години
преди 18 години
преди 18 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="java5/ataspectj" title="RunThemAllWithJavacCompiledAndLTW">
  4. <ant file="ajc-ant.xml" target="RunThemAllWithJavacCompiledAndLTW" verbose="true"/>
  5. </ajc-test>
  6. <ajc-test dir="java5/ataspectj" title="AjcLTW PerClauseTest -XterminateAfterCompilation">
  7. <compile
  8. files="ataspectj/PerClauseTest.java,ataspectj/PerClauseTestAspects.java,ataspectj/TestHelper.java"
  9. options="-1.5 -XterminateAfterCompilation"/>
  10. <ant file="ajc-ant.xml" target="ltw.PerClauseTest" verbose="true"/>
  11. </ajc-test>
  12. <ajc-test dir="java5/ataspectj" title="AjcLTW PerClauseTest -Xreweavable">
  13. <compile
  14. files="ataspectj/PerClauseTest.java,ataspectj/PerClauseTestAspects.java,ataspectj/TestHelper.java"
  15. options="-1.5"/>
  16. <ant file="ajc-ant.xml" target="ltw.PerClauseTest" verbose="true"/>
  17. </ajc-test>
  18. <ajc-test dir="java5/ataspectj" title="JavaCAjcLTW PerClauseTest">
  19. <compile
  20. files="ataspectj/PerClauseTest.java,ataspectj/TestHelper.java,ataspectj/PerClauseTestAspects.java"
  21. options="-1.5 -XterminateAfterCompilation"/>
  22. <comment>
  23. aspectOf methods will be pushed in, ignore warning for adviceDidNotMatch but still do the logic for them
  24. since such just added methods are an interesting case (percflow ajc$perCflowStack advice)
  25. </comment>
  26. <compile
  27. files="ataspectj/PerClauseTestAspects.java"
  28. options="-1.5 -Xdev:NoAtAspectJProcessing">
  29. <message kind="warning"/>
  30. </compile>
  31. <ant file="ajc-ant.xml" target="ltw.PerClauseTest" verbose="true"/>
  32. </ajc-test>
  33. <ajc-test dir="java5/ataspectj" title="AjcLTW AroundInlineMungerTest -XterminateAfterCompilation">
  34. <compile
  35. files="ataspectj/AroundInlineMungerTest.java,ataspectj/AroundInlineMungerTestAspects.java,ataspectj/TestHelper.java"
  36. options="-1.5 -XterminateAfterCompilation"/>
  37. <ant file="ajc-ant.xml" target="ltw.AroundInlineMungerTest" verbose="true"/>
  38. </ajc-test>
  39. <ajc-test dir="java5/ataspectj" title="AjcLTW AroundInlineMungerTest -Xreweavable">
  40. <compile
  41. files="ataspectj/AroundInlineMungerTest.java,ataspectj/AroundInlineMungerTestAspects.java,ataspectj/TestHelper.java"
  42. options="-1.5"/>
  43. <ant file="ajc-ant.xml" target="ltw.AroundInlineMungerTest" verbose="true"/>
  44. </ajc-test>
  45. <ajc-test dir="java5/ataspectj" title="AjcLTW AroundInlineMungerTest">
  46. <compile
  47. files="ataspectj/AroundInlineMungerTestAspects.java"
  48. options="-1.5 -Xlint:ignore"/>
  49. <compile
  50. files="ataspectj/AroundInlineMungerTest.java,ataspectj/TestHelper.java"
  51. options="-1.5"/>
  52. <ant file="ajc-ant.xml" target="ltw.AroundInlineMungerTest" verbose="true"/>
  53. </ajc-test>
  54. <ajc-test dir="java5/ataspectj" title="AjcLTW AroundInlineMungerTest -XnoInline -Xreweavable">
  55. <compile
  56. files="ataspectj/AroundInlineMungerTestAspects.java"
  57. options="-1.5 -Xlint:ignore -XnoInline"/>
  58. <compile
  59. files="ataspectj/AroundInlineMungerTest.java,ataspectj/TestHelper.java"
  60. options="-1.5 -XnoInline"/>
  61. <ant file="ajc-ant.xml" target="ltw.AroundInlineMungerTest" verbose="true"/>
  62. </ajc-test>
  63. <ajc-test dir="java5/ataspectj" title="AjcLTW AroundInlineMungerTest2">
  64. <compile
  65. files="ataspectj/AroundInlineMungerTestAspects2.aj"
  66. options="-1.5 -Xlint:ignore"/>
  67. <compile
  68. files="ataspectj/AroundInlineMungerTest2.aj,ataspectj/TestHelper.java"
  69. options="-1.5"/>
  70. <ant file="ajc-ant.xml" target="ltw.AroundInlineMungerTest2" verbose="true"/>
  71. </ajc-test>
  72. <ajc-test dir="java5/ataspectj" title="LTW DumpTest none">
  73. <compile
  74. files="ataspectj/DumpTest.java,ataspectj/DumpTestTheDump.java,ataspectj/TestHelper.java"
  75. options="-1.5"/>
  76. <run class="ataspectj.DumpTest" ltw="ataspectj/aop-dumpnone.xml"/>
  77. </ajc-test>
  78. <ajc-test dir="java5/ataspectj" title="LTW DumpTest">
  79. <compile
  80. files="ataspectj/EmptyAspect.aj"
  81. options="-1.5 -Xlint:ignore"/>
  82. <compile
  83. files="ataspectj/DumpTest.java,ataspectj/DumpTestTheDump.java,ataspectj/TestHelper.java"
  84. options="-1.5"/>
  85. <run class="ataspectj.DumpTest" ltw="ataspectj/aop-dump.xml"/>
  86. </ajc-test>
  87. <ajc-test dir="java5/ataspectj" title="LTW DumpTest before and after">
  88. <compile
  89. files="ataspectj/EmptyAspect.aj"
  90. options="-1.5 -Xlint:ignore"/>
  91. <compile
  92. files="com/foo/bar/Test.java, com/foo/bar/Test$$EnhancerByCGLIB$$12345.java"
  93. options="-1.5"/>
  94. <run class="com.foo.bar.Test$$EnhancerByCGLIB$$12345" ltw="ataspectj/aop-dumpbeforeandafter.xml">
  95. <stdout>
  96. <line text="Test$$EnhancerByCGLIB$$12345.main()"/>
  97. <line text="Test.main()"/>
  98. </stdout>
  99. <stderr>
  100. <line text="info AspectJ Weaver Version"/>
  101. <line text="info register classloader"/>
  102. <line text="info using"/>
  103. <line text="info register aspect ataspectj.EmptyAspect"/>
  104. <line text="debug not weaving 'com.foo.bar.Test$$EnhancerByCGLIB$$12345'"/>
  105. <line text="debug weaving 'com.foo.bar.Test'"/>
  106. </stderr>
  107. </run>
  108. </ajc-test>
  109. <ajc-test dir="java5/ataspectj" title="LTW DumpTest closure">
  110. <compile
  111. files="ataspectj/DumpTest.java,ataspectj/DumpTestTheDump.java,ataspectj/TestAroundAspect.aj"
  112. options="-1.5"/>
  113. <run class="ataspectj.DumpTest" ltw="ataspectj/aop-dumpclosure.xml"/>
  114. </ajc-test>
  115. <ajc-test dir="java5/ataspectj" title="LTW DumpTest proxy">
  116. <compile
  117. files="ataspectj/EmptyAspect.aj"
  118. options="-1.5 -Xlint:ignore"/>
  119. <compile
  120. files="ataspectj/TestProxyGenerator.java,ataspectj/TestInterface.java"
  121. options="-1.5"/>
  122. <ant file="ajc-ant.xml" target="ltw.DumpProxyTest" verbose="true"/>
  123. </ajc-test>
  124. <ajc-test dir="java5/ataspectj" title="LTW DumpTest JSP">
  125. <compile
  126. files="ataspectj/EmptyAspect.aj"
  127. options="-1.5 -Xlint:ignore"/>
  128. <compile
  129. files="com/ibm/_jsp/_abc123_xyz890.java"
  130. options="-1.5"/>
  131. <run class="com.ibm._jsp._abc123_xyz890" ltw="ataspectj/aop-dumpjsp.xml"/>
  132. </ajc-test>
  133. <ajc-test dir="java5/ataspectj" title="Ajc Aspect1 LTW Aspect2 -Xreweavable">
  134. <compile
  135. files="ataspectj/ltwreweavable/Main.java,ataspectj/ltwreweavable/Aspect1.java,ataspectj/ltwreweavable/Advisable.java"
  136. options="-1.5"
  137. outjar="main1.jar"/>
  138. <ant file="ajc-ant.xml" target="ltw.Aspect2MainTest" verbose="true"/>
  139. </ajc-test>
  140. <ajc-test dir="java5/ataspectj" title="LTW Log silent">
  141. <compile
  142. files="ataspectj/ltwlog/Main.java"
  143. options="-1.5"
  144. />
  145. <compile
  146. files="ataspectj/ltwlog/Aspect1.java"
  147. options="-1.5 -XterminateAfterCompilation"
  148. >
  149. </compile>
  150. <run class="ataspectj.ltwlog.Main" ltw="ataspectj/ltwlog/aop-silent.xml">
  151. <stdout>
  152. <line text="execution(Main.target())"/>
  153. </stdout>
  154. <stderr>
  155. </stderr>
  156. </run>
  157. </ajc-test>
  158. <ajc-test dir="java5/ataspectj" title="LTW Log verbose">
  159. <compile
  160. files="ataspectj/ltwlog/Main.java"
  161. options="-1.5"
  162. />
  163. <compile
  164. files="ataspectj/ltwlog/Aspect1.java"
  165. options="-1.5 -XterminateAfterCompilation"
  166. >
  167. </compile>
  168. <run class="ataspectj.ltwlog.Main" ltw="ataspectj/ltwlog/aop-verbose.xml">
  169. <stdout>
  170. <line text="execution(Main.target())"/>
  171. </stdout>
  172. <stderr>
  173. <line text="info AspectJ Weaver Version"/>
  174. <line text="info register classloader"/>
  175. <line text="info using"/>
  176. <line text="info register aspect ataspectj.ltwlog.Aspect1"/>
  177. <line text="debug weaving 'ataspectj.ltwlog.Main'"/>
  178. <line text="debug weaving 'ataspectj.ltwlog.Aspect1'"/>
  179. </stderr>
  180. </run>
  181. </ajc-test>
  182. <ajc-test dir="java5/ataspectj" title="LTW Log verbose and showWeaveInfo">
  183. <compile
  184. files="ataspectj/ltwlog/Main.java"
  185. options="-1.5"
  186. />
  187. <compile
  188. files="ataspectj/ltwlog/Aspect1.java"
  189. options="-1.5 -XterminateAfterCompilation"
  190. >
  191. </compile>
  192. <run class="ataspectj.ltwlog.Main" ltw="ataspectj/ltwlog/aop-verboseandshow.xml">
  193. <stdout>
  194. <line text="execution(Main.target())"/>
  195. </stdout>
  196. <stderr>
  197. <line text="info AspectJ Weaver Version"/>
  198. <line text="info register classloader"/>
  199. <line text="info using"/>
  200. <line text="info register aspect ataspectj.ltwlog.Aspect1"/>
  201. <line text="debug weaving 'ataspectj.ltwlog.Main'"/>
  202. <line text="Join point 'method-execution(void ataspectj.ltwlog.Main.target())' in Type 'ataspectj.ltwlog.Main' (Main.java:22) advised by before advice from 'ataspectj.ltwlog.Aspect1' (Aspect1.java)"/>
  203. <line text="see also:"/>
  204. <line text="debug weaving 'ataspectj.ltwlog.Aspect1'"/>
  205. </stderr>
  206. </run>
  207. </ajc-test>
  208. <ajc-test dir="java5/ataspectj" title="LTW Log messageHandlerClass">
  209. <compile
  210. files="ataspectj/ltwlog/Main.java, ataspectj/ltwlog/MessageHolder.java"
  211. options="-1.5"
  212. />
  213. <compile
  214. files="ataspectj/ltwlog/Aspect1.java"
  215. options="-1.5 -XterminateAfterCompilation"
  216. >
  217. </compile>
  218. <run class="ataspectj.ltwlog.Main" ltw="ataspectj/ltwlog/aop-messagehandler.xml">
  219. <stdout>
  220. <line text="MessageHolder.MessageHolder()"/>
  221. <line text="execution(Main.target())"/>
  222. </stdout>
  223. <stderr>
  224. </stderr>
  225. </run>
  226. </ajc-test>
  227. <ajc-test dir="java5/ataspectj" title="LTW Unweavable">
  228. <ant file="ajc-ant.xml" target="ltw.Unweavable" verbose="true"/>
  229. </ajc-test>
  230. <ajc-test dir="java5/ataspectj" title="LTW Decp">
  231. <!-- ajc compile them to test reweable as well -->
  232. <compile
  233. files="ataspectj/DeclareParentsInterfaceTest.java,ataspectj/DeclareParentsImplementsTest.java,ataspectj/TestHelper.java"
  234. options="-1.5"
  235. />
  236. <!--<run class="ataspectj.DeclareParentsInterfaceTest" ltw="ataspectj/aop-decptest.xml"/>-->
  237. <ant file="ajc-ant.xml" target="ltw.Decp" verbose="true">
  238. <stderr>
  239. <line text="Extending interface set for type 'ataspectj.DeclareParentsInterfaceTest$Target' (DeclareParentsInterfaceTest.java) to include 'ataspectj.DeclareParentsInterfaceTest$Marker' (DeclareParentsInterfaceTest.java)"/>
  240. <line text="see also:"/>
  241. <line text="Join point 'method-execution(void ataspectj.DeclareParentsInterfaceTest$Target.target())' in Type 'ataspectj.DeclareParentsInterfaceTest$Target' (DeclareParentsInterfaceTest.java:27) advised by before advice from 'ataspectj.DeclareParentsInterfaceTest$TestAspect' (DeclareParentsInterfaceTest.java)"/>
  242. <line text="see also:"/>
  243. <line text="Extending interface set for type 'ataspectj.DeclareParentsImplementsTest$Target' (DeclareParentsImplementsTest.java) to include 'ataspectj.DeclareParentsImplementsTest$Introduced' (DeclareParentsImplementsTest.java)"/>
  244. <line text="see also:"/>
  245. <line text="Type 'ataspectj.DeclareParentsImplementsTest$Target' (DeclareParentsImplementsTest.java) has intertyped method from 'ataspectj.DeclareParentsImplementsTest$TestAspect' (DeclareParentsImplementsTest.java:'void ataspectj.DeclareParentsImplementsTest$Introduced.intro()')"/>
  246. <line text="see also:"/>
  247. <line text="Join point 'method-execution(void ataspectj.DeclareParentsImplementsTest$Implementation.intro())' in Type 'ataspectj.DeclareParentsImplementsTest$Implementation' (DeclareParentsImplementsTest.java:47) advised by before advice from 'ataspectj.DeclareParentsImplementsTest$TestAspect' (DeclareParentsImplementsTest.java)"/>
  248. <line text="see also:"/>
  249. </stderr>
  250. </ant>
  251. </ajc-test>
  252. <ajc-test dir="java5/ataspectj" title="LTW Decp2">
  253. <!-- ajc compile them but with only one aspect -->
  254. <compile
  255. files="ataspectj/DeclareParentsImplementsReweavableTest.java,ataspectj/TestHelper.java"
  256. options="-1.5"
  257. />
  258. <!-- compile the other aspect alone (won't be applied) -->
  259. <ant file="ajc-ant.xml" target="ltw.Decp2" verbose="true"/>
  260. </ajc-test>
  261. <ajc-test dir="java5/ataspectj" title="Compile time aspects declared to ltw weaver">
  262. <compile
  263. files="ataspectj/ltwlog/MessageHolder.java,ataspectj/ltwreweavable/MainReweavableLogging.java,ataspectj/ltwreweavable/AspectReweavableLogging.java,ataspectj/ltwreweavable/Advisable.java,ataspectj/ltwreweavable/EmptyAtAspect.java"
  264. options="-1.5"
  265. outjar="main1.jar"/>
  266. <ant file="ajc-ant.xml" target="Compile time aspects declared to ltw weaver" verbose="true"/>
  267. </ajc-test>
  268. <ajc-test dir="java5/ataspectj" title="Concrete@Aspect">
  269. <compile
  270. files="ataspectj/ConcreteAtAspectTest.java,ataspectj/TestHelper.java"
  271. options="-1.5 -XterminateAfterCompilation"
  272. />
  273. <run class="ataspectj.ConcreteAtAspectTest" ltw="ataspectj/aop-concreteataspect.xml"/>
  274. </ajc-test>
  275. <ajc-test dir="java5/ataspectj" title="ConcreteAspect">
  276. <compile
  277. files="ataspectj/ConcreteAspectTest.aj,ataspectj/TestHelper.java"
  278. options="-1.5 -Xdev:NoAtAspectJProcessing -XterminateAfterCompilation"
  279. />
  280. <run class="ataspectj.ConcreteAspectTest" ltw="ataspectj/aop-concreteaspect.xml"/>
  281. </ajc-test>
  282. <ajc-test dir="java5/ataspectj" title="ConcretePrecedenceAspect">
  283. <compile
  284. files="ataspectj/ConcretePrecedenceAspectTest.java,ataspectj/TestHelper.java"
  285. options="-1.5 -Xdev:NoAtAspectJProcessing -XterminateAfterCompilation"
  286. />
  287. <run class="ataspectj.ConcretePrecedenceAspectTest" ltw="ataspectj/aop-concreteprecedenceaspect.xml"/>
  288. </ajc-test>
  289. <ajc-test dir="java5/ataspectj" title="AspectOfWhenAspectNotInInclude">
  290. <compile
  291. files="ataspectj/bugs/AspectOfWhenAspectNotInIncludeTest.java,ataspectj/TestHelper.java"
  292. options="-1.5 -XterminateAfterCompilation"/>
  293. <run class="ataspectj.bugs.AspectOfWhenAspectNotInIncludeTest" ltw="ataspectj/bugs/aop-aspectofwhenaspectnotinincludetest.xml"/>
  294. </ajc-test>
  295. <ajc-test dir="java5/ataspectj" title="AspectOfWhenAspectExcluded">
  296. <compile
  297. files="ataspectj/bugs/AspectOfWhenAspectNotInIncludeTest.java,ataspectj/TestHelper.java"
  298. options="-1.5 -XterminateAfterCompilation"/>
  299. <run class="ataspectj.bugs.AspectOfWhenAspectNotInIncludeTest" ltw="ataspectj/bugs/aop-aspectofwhenaspectexcludedtest.xml"/>
  300. </ajc-test>
  301. <ajc-test dir="java5/ataspectj" title="AspectOfWhenNonAspectExcluded">
  302. <compile
  303. files="ataspectj/bugs/NotAspect.java"
  304. options="-1.5 -XterminateAfterCompilation"/>
  305. <run class="ataspectj.bugs.NotAspect" ltw="ataspectj/bugs/aop-aspectofwhennonaspectexcludedtest.xml"/>
  306. </ajc-test>
  307. <ajc-test dir="java5/ataspectj" title="AppContainer">
  308. <compile
  309. files="ataspectj/hierarchy/AppContainerTest.java,ataspectj/hierarchy/app/SubApp.java,ataspectj/TestHelper.java"
  310. options="-1.5 -XterminateAfterCompilation"
  311. />
  312. <ant file="ajc-ant.xml" target="ltw.AppContainer" verbose="true"/>
  313. </ajc-test>
  314. <ajc-test dir="java5/ataspectj" title="CflowBelowStack">
  315. <compile
  316. files="ataspectj/bugs/CflowBelowStackTest.java,ataspectj/TestHelper.java"
  317. options="-1.5 -verbose "/>
  318. <run class="ataspectj.bugs.CflowBelowStackTest" ltw="ataspectj/bugs/aop-cflowbelowstacktest.xml"/>
  319. </ajc-test>
  320. </suite>