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.

ajc163.xml 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs163/pr259279" title="ordering repetitive method">
  4. <compile files="SomeServiceImpl.java SomeInterface.java Main.java GenericService.java GenericServiceImpl.java Aspect.java" options="-1.5"/>
  5. <run class="Main"/>
  6. </ajc-test>
  7. <ajc-test dir="bugs163/pr259279" title="ordering repetitive method - 2">
  8. <compile files="GenericServiceImpl.java SomeServiceImpl.java SomeInterface.java Main.java GenericService.java Aspect.java" options="-1.5"/>
  9. <run class="Main"/>
  10. </ajc-test>
  11. <ajc-test dir="bugs163/pr258653" title="getNode">
  12. <compile files="staticinit.java" options="-1.5 -emacssym"/>
  13. </ajc-test>
  14. <ajc-test dir="bugs163/pr252722" title="extending AbstractSecurityInterceptor">
  15. <compile files="A.java" options="-1.5"/>
  16. <run class="A"/>
  17. </ajc-test>
  18. <ajc-test dir="bugs163/pr252722" title="extending AbstractSecurityInterceptor - 2">
  19. <compile files="ACode.java" options="-1.5"/>
  20. <run class="ACode"/>
  21. </ajc-test>
  22. <ajc-test dir="bugs163/pr252722" title="extending AbstractSecurityInterceptor - 3">
  23. <compile files="B.java" options="-1.5"/>
  24. <run class="B"/>
  25. </ajc-test>
  26. <ajc-test dir="bugs163/pr252722" title="extending AbstractSecurityInterceptor - 4">
  27. <compile files="BCode.java" options="-1.5"/>
  28. <run class="BCode"/>
  29. </ajc-test>
  30. <ajc-test dir="bugs163/pr154427" title="getMethod returning null">
  31. <compile files="AuthorizationImpl.java Authorization.java AuthorizationAdmin.java CallAndMethodSignatureAspect.java CallTest.java" options=""/>
  32. <run class="CallTest">
  33. <stdout>
  34. <line text="public abstract boolean Authorization.mayPerform(java.lang.String,java.lang.String)"/>
  35. <line text="public abstract interface boolean AuthorizationAdmin.mayPerform(java.lang.String, java.lang.String)"/>
  36. <line text="mayPerform() executing"/>
  37. <line text="public abstract boolean AuthorizationAdmin.mayPerform2(java.lang.String,java.lang.String)"/>
  38. <line text="public abstract interface boolean AuthorizationAdmin.mayPerform2(java.lang.String, java.lang.String)"/>
  39. <line text="mayPerform2() executing"/>
  40. <line text="public abstract boolean Authorization.mayPerform(java.lang.String,java.lang.String)"/>
  41. <line text="public abstract interface boolean Authorization.mayPerform(java.lang.String, java.lang.String)"/>
  42. <line text="mayPerform() executing"/>
  43. </stdout>
  44. </run>
  45. </ajc-test>
  46. <ajc-test dir="bugs163/pr128664" title="inherited annotations">
  47. <compile files="Bug.java" options="-1.5 -showWeaveInfo">
  48. <message kind="weave" text=""/>
  49. </compile>
  50. <run class="Bug"/>
  51. </ajc-test>
  52. <ajc-test dir="bugs163/pr128664" title="inherited annotations - 2">
  53. <compile files="Bug2.java" options="-1.5 -showWeaveInfo">
  54. <message kind="weave" text=""/>
  55. </compile>
  56. <run class="Bug2"/>
  57. </ajc-test>
  58. <ajc-test dir="bugs163/pr257754" title="decp anno style">
  59. <compile files="Main.java" options="-1.5"/>
  60. <run class="example.Main">
  61. <stdout>
  62. <line text="In doFoo class example.DefaultFoo"/>
  63. <line text="Bar"/>
  64. </stdout>
  65. </run>
  66. </ajc-test>
  67. <ajc-test dir="bugs163/pr257754" title="decp anno style - 2">
  68. <compile files="Main2.java Foo.java DefaultFoo.java" options="-1.5">
  69. <message kind="error" text="but it is of incorrect visibility"/>
  70. </compile>
  71. </ajc-test>
  72. <ajc-test dir="bugs163/pr219419" title="incorrect arg ordering anno style">
  73. <compile files="Code.java" options="-1.5"/>
  74. <run class="Code">
  75. <stdout>
  76. <line text="Catching mess. Argument was ewwww"/>
  77. </stdout>
  78. </run>
  79. </ajc-test>
  80. <ajc-test dir="bugs163/pr219419" title="incorrect arg ordering anno style - 2">
  81. <compile files="Code2.java" options="-1.5"/>
  82. <run class="Code2">
  83. <stdout>
  84. <line text="Catching mess. Argument was ewwww"/>
  85. </stdout>
  86. </run>
  87. </ajc-test>
  88. <ajc-test dir="bugs163/pr219419" title="incorrect arg ordering anno style - 3">
  89. <compile files="Code3.java" options="-1.5"/>
  90. <run class="Code3">
  91. <stdout>
  92. <line text="afterReturningCreateBean advice input='s' ret=37"/>
  93. <line text="Code3.main returned from call to createBean 37"/>
  94. </stdout>
  95. </run>
  96. </ajc-test>
  97. <ajc-test dir="bugs163/pr219419" title="incorrect arg ordering anno style - 4">
  98. <compile files="Code4.java" options="-1.5"/>
  99. <run class="Code4">
  100. <stdout>
  101. <line text="afterReturningCreateBean advice input='s' ret=37"/>
  102. <line text="Code4.main returned from call to createBean 37"/>
  103. </stdout>
  104. </run>
  105. </ajc-test>
  106. <ajc-test dir="bugs163/pr219419" title="incorrect arg ordering anno style - 5">
  107. <compile files="Code5.java" options="-1.5"/>
  108. <run class="Code5">
  109. <stdout>
  110. <line text="afterReturningCreateBean advice input='s' ret=37"/>
  111. <line text="Code5.main returned from call to createBean 37"/>
  112. </stdout>
  113. </run>
  114. </ajc-test>
  115. <ajc-test dir="bugs163/pr256458" title="poor ataj if message - 1">
  116. <compile files="Code.java" options="-1.5">
  117. <message kind="error" text="in annotation style, if(...) pointcuts cannot contain code"/>
  118. </compile>
  119. </ajc-test>
  120. <ajc-test dir="bugs163/pr256458" title="poor ataj if message - 2">
  121. <compile files="Code2.java" options="-1.5">
  122. <message kind="error" text="in annotation style, if(...) pointcuts cannot contain code"/>
  123. </compile>
  124. </ajc-test>
  125. <ajc-test dir="bugs163/pr256937" title="fully qualified return type">
  126. <compile files="Ship.java ShipAccessor.java" options="-emacssym -1.5"/>
  127. </ajc-test>
  128. <ajc-test dir="bugs163/pr164016" title="ataspectj decp">
  129. <compile files="Code.aj" options="-1.5"/>
  130. <run class="test.Code"/>
  131. </ajc-test>
  132. <ajc-test dir="bugs163/pr213751" title="mixed styles">
  133. <compile files="Foo.java" options="-emacssym -1.5"/>
  134. </ajc-test>
  135. <ajc-test dir="bugs163/pr249216" title="handles - escaped square brackets">
  136. <compile files="Handles.java" options="-emacssym -1.5"/>
  137. </ajc-test>
  138. <ajc-test dir="bugs163/pr171042" title="itd on anonymous inner">
  139. <compile files="TestClass.java Executable.java RunnableAspect.java" options=""/>
  140. </ajc-test>
  141. <ajc-test dir="bugs163/pr254207" title="ordering issue">
  142. <compile files="Abstract.java Concrete.java" options="-1.5 -proceedOnError -Xset:pipelineCompilation=false">
  143. <message kind="error" line="1" text="Bound mismatch"/>
  144. </compile>
  145. <compile files="Concrete.java Abstract.java" options="-1.5 -proceedOnError -Xset:pipelineCompilation=false">
  146. <message kind="error" line="1" text="Bound mismatch"/>
  147. </compile>
  148. </ajc-test>
  149. <ajc-test dir="bugs163/pr254207/case2" title="ordering issue - 2">
  150. <compile files="Interface.java Clazz.java Abstract.java Concrete.java" options="-1.5 -proceedOnError -Xset:pipelineCompilation=false">
  151. <message kind="error" line="1" text="Bound mismatch"/>
  152. </compile>
  153. </ajc-test>
  154. <ajc-test dir="bugs163/pr256669" title="parameter annotations on ITDs">
  155. <compile files="Destination.java SimpleTest.java Introduction.java SomeAnnotation.java" options="-1.5"/>
  156. <run class="SimpleTest">
  157. <stdout>
  158. <line text="Parameter 0 has 1 parameter annotations"/>
  159. </stdout>
  160. </run>
  161. </ajc-test>
  162. <ajc-test dir="bugs163/pr256669" title="parameter annotations on ITDs - 2">
  163. <compile files="Two.java" options="-1.5"/>
  164. <run class="Two">
  165. <stdout>
  166. <line text="Parameter 0 has 1 parameter annotations"/>
  167. </stdout>
  168. </run>
  169. </ajc-test>
  170. <ajc-test dir="bugs163/pr256669" title="parameter annotations on ITDs - 3">
  171. <compile files="Three.java" options="-1.5"/>
  172. <run class="Three">
  173. <stdout>
  174. <line text="Parameter 0 has 0 parameter annotations"/>
  175. <line text="Parameter 1 has 1 parameter annotations"/>
  176. <line text="Parameter 2 has 0 parameter annotations"/>
  177. <line text="Parameter 3 has 1 parameter annotations"/>
  178. </stdout>
  179. </run>
  180. </ajc-test>
  181. <ajc-test dir="bugs163/pr256669" title="parameter annotations on ITDs - 4">
  182. <compile files="Four.java" options="-1.5"/>
  183. <run class="Four">
  184. <stdout>
  185. <line text="Class D parameter 0 has 1 parameter annotations"/>
  186. <line text="Interface I parameter 0 has 1 parameter annotations"/>
  187. </stdout>
  188. </run>
  189. </ajc-test>
  190. <ajc-test dir="bugs163/pr253109" title="generic pointcuts - 1">
  191. <compile files="CodeOne.java" options="-1.5">
  192. <message kind="warning" line="4" text="has not been applied"/>
  193. </compile>
  194. </ajc-test>
  195. <ajc-test dir="bugs163/pr257833" title="param annos and at args">
  196. <compile files="NotNull.java NotNullAspect.java NotNullTest.java" options="-1.5 -showWeaveInfo">
  197. <message kind="weave" text="Join point 'constructor-execution(void patterntesting.check.runtime.NotNullTest.&lt;init&gt;(java.lang.String))' in Type"/>
  198. </compile>
  199. <run class="patterntesting.check.runtime.NotNullTest"/>
  200. </ajc-test>
  201. <ajc-test dir="bugs163/pr253109" title="generic pointcuts - 2">
  202. <compile files="CodeTwo.java" options="-1.5"/>
  203. </ajc-test>
  204. <ajc-test dir="bugs163/pr253109" title="generic pointcuts - 3">
  205. <compile files="CodeThree.java" options="-1.5 -showWeaveInfo">
  206. <message kind="weave" text="advised by before advice from 'CodeThree' (CodeThree.java:4)"/>
  207. <message kind="weave" text="advised by before advice from 'CodeThree' (CodeThree.java:5) [with runtime test]"/>
  208. <message kind="warning" line="6" text="has not been applied"/>
  209. <message kind="warning" line="7" text="has not been applied"/>
  210. <message kind="weave" text="advised by before advice from 'CodeThree' (CodeThree.java:8)"/>
  211. <message kind="weave" text="advised by before advice from 'CodeThree' (CodeThree.java:9) [with runtime test]"/>
  212. <message kind="warning" line="5" text="unchecked"/>
  213. <message kind="warning" line="9" text="unchecked"/>
  214. </compile>
  215. </ajc-test>
  216. <ajc-test dir="bugs163/pr253109" title="generic pointcuts - 4">
  217. <compile files="CodeFour.java" options="-1.5">
  218. <message kind="warning" text="has not been applied"/>
  219. </compile>
  220. </ajc-test>
  221. <ajc-test dir="bugs163/pr255856" title="attarget with plus">
  222. <compile files="Bug.java" options="-1.5">
  223. <message kind="error" text="unexpected pointcut element"/>
  224. </compile>
  225. </ajc-test>
  226. <ajc-test dir="bugs163/pr253109" title="generic pointcuts - 5">
  227. <compile files="CodeFive.java" options="-1.5 -showWeaveInfo">
  228. <message kind="weave" line="55" text="advised by around advice"/>
  229. </compile>
  230. </ajc-test>
  231. <ajc-test dir="bugs163/pr194314" title="broken lvt - 1">
  232. <compile files="Service.java IService.java Main.java ServiceInterceptor.java" options="-1.5"/>
  233. </ajc-test>
  234. <ajc-test dir="bugs163/pr194314" title="broken lvt - 2">
  235. <compile files="Service.java IService.java Main.java ServiceInterceptorCodeStyle.java" options="-1.5"/>
  236. </ajc-test>
  237. <ajc-test dir="bugs163/pr163005" title="do not add method bodies to an interface">
  238. <compile files="Code.java" options="-1.4">
  239. <message kind="warning" text="The joinpoint 'method-call(java.lang.Class java.lang.Class.forName(java.lang.String))' cannot be advised"/>
  240. </compile>
  241. <run class="Code"/>
  242. </ajc-test>
  243. <ajc-test dir="bugs163/pr163005" title="do not add method bodies to an interface - 2">
  244. <compile files="Code.java" options="-1.4 -XnoInline">
  245. <message kind="warning" text="The joinpoint 'method-call(java.lang.Class java.lang.Class.forName(java.lang.String))' cannot be advised"/>
  246. </compile>
  247. <run class="Code"/>
  248. </ajc-test>
  249. <ajc-test dir="bugs163/pr163005" title="do not add method bodies to an interface - 3">
  250. <compile files="Code2.java" options="-1.4">
  251. <message kind="warning" text="The joinpoint 'constructor-call(void java.lang.Object.&lt;init&gt;())' cannot be advised"/>
  252. </compile>
  253. <run class="Code2"/>
  254. </ajc-test>
  255. <ajc-test dir="bugs163/pr250091" title="itd cce">
  256. <compile files="Demo.java" options="-1.5"/>
  257. <run class="Demo">
  258. <stdout>
  259. <line text="class A (false)"/>
  260. <line text="class A (false)"/>
  261. <line text="class Base (false)"/>
  262. </stdout>
  263. </run>
  264. </ajc-test>
  265. <ajc-test dir="bugs163/pr226163" title="breaking recovery">
  266. <compile files="Code.java" options="-1.5">
  267. <message kind="error" line="4" text="Syntax error"/>
  268. </compile>
  269. </ajc-test>
  270. <ajc-test dir="bugs163/pr173978" title="missing local variable table on around advice">
  271. <compile files="Test.java TestAroundAspect.java" options="-1.5"/>
  272. </ajc-test>
  273. <ajc-test dir="bugs163/pr249710" title="terminateAfterCompilation">
  274. <compile files="Foo.java" options="-1.5">
  275. </compile>
  276. </ajc-test>
  277. <ajc-test dir="bugs163/pr250632" title="type conversion in generic itd">
  278. <compile files="MyAspect.java" options="-1.5"/>
  279. </ajc-test>
  280. <ajc-test dir="bugs163/pr250493" title="bridge methods for generic itds">
  281. <compile files="Bridged.java" options="-1.5"/>
  282. <run class="Bridged">
  283. <stdout>
  284. <line text="getterA()java.lang.Object isBridged?true"/>
  285. <line text="getterA()java.lang.String isBridged?false"/>
  286. <line text="getterB()java.lang.Object isBridged?true"/>
  287. <line text="getterB()java.lang.String isBridged?false"/>
  288. </stdout>
  289. </run>
  290. </ajc-test>
  291. <ajc-test dir="bugs163/pr252285" title="bridge methods for generic itd fields">
  292. <compile files="Bridged.java" options="-1.5"/>
  293. <run class="Bridged">
  294. <stdout>
  295. <line text="ajc$interFieldGet$X$Super$getterA()java.lang.Integer isBridged?false"/>
  296. <line text="ajc$interFieldGet$X$Super$getterA()java.lang.Number isBridged?true"/>
  297. <line text="ajc$interFieldSet$X$Super$getterA()void isBridged?false"/>
  298. <line text="ajc$interFieldSet$X$Super$getterA()void isBridged?true"/>
  299. </stdout>
  300. </run>
  301. </ajc-test>
  302. <ajc-test dir="bugs163/pr251326" title="itd anonymous inner class in wrong package">
  303. <compile files="pkgA/Listener.java pkgA/Target.java pkgB/InferListener.aj" options="-1.5"/>
  304. <run class="pkgA.Target">
  305. <stdout>
  306. <line text="Simple A"/>
  307. <line text="Inferred B"/>
  308. </stdout>
  309. </run>
  310. </ajc-test>
  311. </suite>