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.

ajc161.xml 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <!-- AspectJ v1.6.1 Tests -->
  3. <suite>
  4. <ajc-test dir="bugs161/pr237447" title="signature processing">
  5. <compile files="GenericClass.java SomeClass.java GenericGenericMemberClass.java UnrelatedAspect.java" options="-1.5"/>
  6. </ajc-test>
  7. <ajc-test dir="bugs161/pr173978" title="lv table for around">
  8. <compile files="TestAroundAspect.java Test.java" options="-1.5"/>
  9. </ajc-test>
  10. <ajc-test dir="bugs161/pr237419" title="generics ataround">
  11. <compile files="problem/aspect/AnyAspect.java problem/SpecificService.java problem/Specific.java problem/GenericService.java problem/Generic.java" options="-1.5"/>
  12. <run class="problem.SpecificService"/>
  13. </ajc-test>
  14. <ajc-test dir="bugs161/pr203367" title="generic marker match">
  15. <compile files="CantMatchOnInterfaceIntroducedToGenericClass.java" options="-1.5"/>
  16. <run class="bug.CantMatchOnInterfaceIntroducedToGenericClass"/>
  17. </ajc-test>
  18. <ajc-test dir="bugs161/pr198196" title="super itds - 2">
  19. <compile files="Marker.java Foo.java MarkerAspect2.java"/>
  20. <run class="Foo">
  21. <stdout>
  22. <line text="a"/>
  23. <line text="a"/>
  24. <line text="a"/>
  25. <line text="a"/>
  26. <line text="a"/>
  27. <line text="a"/>
  28. </stdout>
  29. </run>
  30. </ajc-test>
  31. <ajc-test dir="bugs161/pr198196" title="super itds - 3">
  32. <compile files="Marker.java Foo.java MarkerAspect1.java"/>
  33. <run class="Foo"/>
  34. </ajc-test>
  35. <ajc-test dir="bugs161/pr198196" title="super itds - 4">
  36. <compile files="Marker.java Foo.java MarkerAspect3.java"/>
  37. <run class="Foo"/>
  38. </ajc-test>
  39. <ajc-test dir="bugs161/pr134425" title="super itds">
  40. <compile files="Derived.java Base.java"/>
  41. <run class="pkg.Derived"/>
  42. </ajc-test>
  43. <ajc-test dir="bugs161/pr237381" title="ataspectj deow - 1">
  44. <compile files="Deow1.java" options="-1.5">
  45. <message kind="warning" line="7" text="fromX"/>
  46. <message kind="warning" line="15" text="fromY"/>
  47. </compile>
  48. </ajc-test>
  49. <ajc-test dir="bugs161/pr237381" title="ataspectj deow - 2">
  50. <compile files="Deow2.java" options="-1.5">
  51. <message kind="error" line="7" text="fromX"/>
  52. <message kind="error" line="15" text="fromY"/>
  53. </compile>
  54. </ajc-test>
  55. <ajc-test dir="bugs161/pr102733" title="running broken code">
  56. <compile files="Invoker.java C.java" options="-proceedOnError">
  57. <message kind="error" line="2" text="Syntax error"/>
  58. </compile>
  59. <run class="Invoker"/>
  60. </ajc-test>
  61. <ajc-test dir="bugs161/pr102733" title="running broken code - 2">
  62. <compile files="Invoker2.java C2.java" options="-proceedOnError">
  63. <message kind="error" line="5"/>
  64. </compile>
  65. <run class="Invoker2"/>
  66. </ajc-test>
  67. <ajc-test dir="bugs161/pr168982" title="error on non-abstract generic ataspectj aspect">
  68. <compile files="TracingAspect2.java" options="-1.5">
  69. <message kind="error" line="9"/>
  70. </compile>
  71. </ajc-test>
  72. <ajc-test dir="bugs161/pr234933" title="ignoring type level suppress">
  73. <compile files="Foobar.java" options="-1.5 -Xlint:error"/>
  74. </ajc-test>
  75. <ajc-test dir="bugs161/pr223226" title="duplicate method signature - 2">
  76. <compile files="AspectX.java BInterface.java FooInterface.java AspectXMarker.java Foo.java Test.java" options="-1.5"/>
  77. <run class="Test"/>
  78. </ajc-test>
  79. <ajc-test dir="bugs161/pr223226" title="duplicate method signature">
  80. <compile files="AspectX.java BInterface.java FooInterface.java AspectXMarker.java Foo.java Test.java" options="">
  81. <message kind="error" line="1"/>
  82. <message kind="error" line="2"/>
  83. <message kind="error" line="3"/>
  84. <message kind="error" line="5"/>
  85. </compile>
  86. </ajc-test>
  87. <ajc-test dir="bugs161/pr197719" title="protected methods and around advice - again - 2">
  88. <compile files="test/aspects/C1.java test/aspects/C3.java test/aspects/MyAnn.java test/aspects/MyAnnAspect.java test/aspects2/C2.java" options="-1.5 -showWeaveInfo">
  89. <message kind="weave" text="Join point 'method-call(void test.aspects.C1.aMethod())' in Type 'test.aspects.C1' (C1.java:12) "/>
  90. <!-- first of these through accessor - so line number wrong and target wrong -->
  91. <message kind="weave" text="Join point 'method-call(void test.aspects2.C2.aMethod())' in Type 'test.aspects2.C2' (C2.java:1) "/><!-- was line 18 -->
  92. <message kind="weave" text="Join point 'method-call(void test.aspects2.C2.aMethod())' in Type 'test.aspects2.C2' (C2.java:8) "/>
  93. <message kind="weave" text="Join point 'method-call(void test.aspects2.C2.aMethod())' in Type 'test.aspects2.C2' (C2.java:29) "/>
  94. <message kind="weave" text="Join point 'method-call(void test.aspects.C1.aMethod())' in Type 'test.aspects.C3' (C3.java:10) "/>
  95. <message kind="weave" text="Join point 'method-call(void test.aspects2.C2.aMethod())' in Type 'test.aspects.C3' (C3.java:13) "/>
  96. <message kind="weave" text="Join point 'method-call(void test.aspects.C1.aMethod())' in Type 'test.aspects.C3$InnerClass' (C3.java:24) "/>
  97. <message kind="weave" text="Join point 'method-call(void test.aspects2.C2.aMethod())' in Type 'test.aspects.C3$InnerClass' (C3.java:27) "/>
  98. <message kind="weave" text="Join point 'method-call(void test.aspects.C1.aMethod())' in Type 'test.aspects.C3' (C3.java:34) "/>
  99. </compile>
  100. <run class="test.aspects.C3">
  101. </run>
  102. </ajc-test>
  103. <ajc-test dir="bugs161/pr197719" title="protected methods and around advice - again">
  104. <compile files="A.java B.java X.java" options="-1.5"/>
  105. <run class="b.B">
  106. <stdout>
  107. <line text="calling m()"/>
  108. <line text="advice running"/>
  109. <line text="m() running"/>
  110. </stdout>
  111. </run>
  112. </ajc-test>
  113. <ajc-test dir="bugs161/pr230075" title="protected methods and around advice">
  114. <compile files="A.java B.java C.java X.java" options="-1.5"/>
  115. <run class="a.C"/>
  116. </ajc-test>
  117. <ajc-test dir="bugs161/pr174385" title="static strings in annotation pointcuts">
  118. <compile files="StaticFinalStringInPointcutAspect.java" options="-1.5"/>
  119. <run class="bug.StaticFinalStringInPointcutAspect"/>
  120. </ajc-test>
  121. <ajc-test dir="bugs161/pr199130" title="complex bounds on generic aspect - 1">
  122. <compile files="Simple.java" options="-1.5"/>
  123. <run class="Simple">
  124. </run>
  125. </ajc-test>
  126. <ajc-test dir="bugs161/pr199130" title="complex bounds on generic aspect - 2">
  127. <compile files="Complex.java" options="-1.5"/>
  128. <run class="Complex">
  129. </run>
  130. </ajc-test>
  131. <ajc-test dir="bugs161/pr199130" title="complex bounds on generic aspect - 3">
  132. <compile files="Complex2.java" options="-1.5"/>
  133. <run class="Complex2">
  134. </run>
  135. </ajc-test>
  136. <ajc-test dir="bugs161/pr226201" title="generic aspect around advice">
  137. <compile files="IntAspTest.java" options="-1.5"/>
  138. <run class="IntAspTest">
  139. </run>
  140. </ajc-test>
  141. <ajc-test dir="bugs161/pr235829" title="crazy generics and inner types">
  142. <compile files="Main.java a/Adapter.java a/b/Adapter.java" options="-1.5"/>
  143. <run class="Main"/>
  144. </ajc-test>
  145. <ajc-test dir="bugs161/pr235597" title="annotation exposure and generics">
  146. <compile files="AnnotationTest1.java SomeAnnotation.java SomeAspect.java" options="-1.5"/>
  147. <run class="AnnotationTest1">
  148. <stdout>
  149. <line text="@someAspect annotation parameter (call)"/>
  150. <line text="@someAspect annotation no parameter"/>
  151. <line text="@someAspect method name"/>
  152. <line text="@someAspect annotation parameter (execution)"/>
  153. <line text="test 1"/>
  154. <line text="@someAspect annotation parameter (call)"/>
  155. <line text="@someAspect annotation no parameter"/>
  156. <line text="@someAspect method name"/>
  157. <line text="@someAspect annotation parameter (execution)"/>
  158. <line text="test 2"/>
  159. <line text="@someAspect annotation parameter (call)"/>
  160. <line text="@someAspect annotation no parameter"/>
  161. <line text="@someAspect method name"/>
  162. <line text="@someAspect annotation parameter (execution)"/>
  163. <line text="test 3"/>
  164. </stdout>
  165. </run>
  166. </ajc-test>
  167. <ajc-test dir="bugs161/pr235204" title="incorrect call relationship">
  168. <compile files="RecursiveCatcher.java" options="-1.5 -emacssym"/>
  169. </ajc-test>
  170. <ajc-test dir="bugs161/pr233838" title="itd precedence - 1">
  171. <compile files="Z.java" options="-1.5"/>
  172. <run class="Z">
  173. <stdout>
  174. <line text="X.test()"/>
  175. </stdout>
  176. </run>
  177. </ajc-test>
  178. <ajc-test dir="bugs161/pr233838" title="itd precedence - 2">
  179. <compile files="Z2.java" options="-1.5"/>
  180. <run class="Z2">
  181. <stdout>
  182. <line text="Y.test()"/>
  183. </stdout>
  184. </run>
  185. </ajc-test>
  186. <ajc-test dir="bugs161/pr227401" title="getfield problem with generics">
  187. <compile files="Instrumentation.java Fails.java" options="-1.5"/>
  188. <run class="Fails">
  189. <stdout>
  190. <line text="getField(* protS) getField()='protected java.lang.String Fails$A.protS' getDeclaringType()='class Fails$A'"/>
  191. <line text="getField(* prot) getField()='protected int Fails$A.prot' getDeclaringType()='class Fails$A'"/>
  192. <line text="22"/>
  193. <line text="getField(* defS) getField()='java.lang.String Fails$A.defS' getDeclaringType()='class Fails$A'"/>
  194. <line text="getField(* def) getField()='int Fails$A.def' getDeclaringType()='class Fails$A'"/>
  195. <line text="11"/>
  196. <line text="getField(* defS) getField()='java.lang.String Fails$A.defS' getDeclaringType()='class Fails$A'"/>
  197. <line text="getField(* def) getField()='int Fails$A.def' getDeclaringType()='class Fails$A'"/>
  198. <line text="22"/>
  199. </stdout>
  200. </run>
  201. </ajc-test>
  202. <ajc-test dir="bugs161/pr231478" title="generic abstract aspects">
  203. <compile files="Base.java Sub.java AbstractComponent.java AbstractWindow.java" options="-1.5"/>
  204. </ajc-test>
  205. <ajc-test dir="bugs161/pr227993" title="field jp anno value">
  206. <compile files="FieldJP.java" options="-1.5"/>
  207. <run class="FieldJP">
  208. <stderr>
  209. <line text="get of YES field"/>
  210. <line text="fone=0"/>
  211. <line text="get of NO field"/>
  212. <line text="ftwo=0"/>
  213. <line text="fthr=0"/>
  214. <line text="set of YES field"/>
  215. <line text="set of NO field"/>
  216. </stderr>
  217. </run>
  218. </ajc-test>
  219. <ajc-test dir="bugs161/pr231187x" title="generics bounds decp">
  220. <compile files="Cement.java ConcreteClass.java SuperClass.java SuperClassAspect.aj WetCement.java Main.java" options="-1.5"/>
  221. <run class="concrete.Main">
  222. <stdout>
  223. <line text="ran!"/>
  224. </stdout>
  225. </run>
  226. </ajc-test>
  227. <ajc-test dir="bugs161/pr231187x" title="generics bounds decp - 2">
  228. <compile files="Cement.java ConcreteClass.java SuperClass.java WetCement.java" options="-1.5">
  229. <message kind="error" text="The type WetCement is not a valid substitute for the bounded parameter"/>
  230. </compile>
  231. </ajc-test>
  232. <ajc-test dir="bugs161/pr230134" title="ltw inherited cflow">
  233. <compile files="HW.java"/>
  234. <compile files="SimpleTracing.java Tracing.java HelloWorldTracing.java" outjar="foo.jar"/>
  235. <run class="hello.HW" classpath="$sandbox/foo.jar" ltw="aop.xml">
  236. <stdout>
  237. <line text="Hello World"/>
  238. </stdout>
  239. </run>
  240. </ajc-test>
  241. <ajc-test dir="bugs161/pr229910" title="around advice on field set">
  242. <compile files="Test.java" options="-1.5"/>
  243. <run class="Test"/>
  244. </ajc-test>
  245. <ajc-test dir="bugs161/pr226567" title="pipeline compilation and generic return type">
  246. <compile files="BarAspect.aj Foo.java Bar.java" options="-1.5"/>
  247. <compile files="BarAspect.aj Bar.java Foo.java" options="-1.5"/>
  248. </ajc-test>
  249. <ajc-test dir="bugs161/pr235505" title="privileged generic aspect">
  250. <compile files="A.java" options="-1.5"/>
  251. </ajc-test>
  252. <ajc-test dir="bugs161/pr235505" title="privileged generic aspect - 2">
  253. <compile files="B.java" options="-1.5"/>
  254. <run class="B">
  255. <stdout>
  256. <line text="Hello World"/>
  257. <line text="Hello World"/>
  258. </stdout>
  259. </run>
  260. </ajc-test>
  261. <ajc-test dir="bugs161/pr64222" title="parsing around advice no return">
  262. <compile files="C.java" options="-1.5">
  263. <message kind="error" line="6" text="to complete around advice declaration"/>
  264. </compile>
  265. </ajc-test>
  266. <ajc-test dir="bugs161/pr159268" title="before array name">
  267. <compile files="C.java" options="-1.5"/>
  268. </ajc-test>
  269. </suite>