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 25KB

12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs1612/pr327141" title="classcast">
  4. <compile files="AspectWithConstant.aj" options="-1.5"/>
  5. <run class="AspectWithConstant">
  6. <stdout>
  7. <line text="MAX=9"/>
  8. <line text="@AspectWithConstant$Loggable()" vm="-18"/>
  9. <line text="@AspectWithConstant.Loggable()" vm="19-"/>
  10. </stdout></run>
  11. </ajc-test>
  12. <ajc-test dir="bugs1612/xmldefs" title="xml defined advice">
  13. <compile files="Hello.java JavaHelper.java"/>
  14. <run class="Hello" ltw="aop.xml">
  15. <stdout>
  16. <line text="Hello"/>
  17. <line text="in advice"/>
  18. <line text="World"/>
  19. </stdout>
  20. </run>
  21. </ajc-test>
  22. <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 2">
  23. <compile files="Hello.java JavaHelper.java"/>
  24. <run class="Hello" ltw="aop2.xml">
  25. <stdout>
  26. <line text="Hello"/>
  27. <line text="World"/>
  28. </stdout>
  29. <stderr>
  30. <line text="info AspectJ Weaver"/>
  31. <line text="info register classloader"/>
  32. <line text="info using config"/>
  33. <line text="info define aspect"/>
  34. <line text="error Class to invoke cannot be found: 'com.DoesNotExist'"/>
  35. <line text="info weaver operating"/>
  36. </stderr>
  37. </run>
  38. </ajc-test>
  39. <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 3">
  40. <compile files="Hello.java JavaHelper.java"/>
  41. <run class="Hello" ltw="aop3.xml">
  42. <stdout>
  43. <line text="Hello"/>
  44. <line text="World"/>
  45. </stdout>
  46. <stderr>
  47. <line text="info AspectJ Weaver"/>
  48. <line text="info register classloader"/>
  49. <line text="info using config"/>
  50. <line text="info define aspect"/>
  51. <line text="error Cannot find type specified as parameter: 'String' from signature '(String)'"/>
  52. <line text="info weaver operating"/>
  53. </stderr>
  54. </run>
  55. </ajc-test>
  56. <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 4">
  57. <compile files="Hello.java JavaHelper.java"/>
  58. <run class="Hello" ltw="aop4.xml">
  59. <stdout>
  60. <line text="Hello"/>
  61. <line text="World"/>
  62. </stdout>
  63. <stderr>
  64. <line text="info AspectJ Weaver"/>
  65. <line text="info register classloader"/>
  66. <line text="info using config"/>
  67. <line text="info define aspect"/>
  68. <line text="error Cannot find type specified as parameter: 'java.lang.String:List' from signature '(java.lang.String:List)'"/>
  69. <line text="info weaver operating"/>
  70. </stderr>
  71. </run>
  72. </ajc-test>
  73. <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 5">
  74. <compile files="Hello2.java JavaHelper.java"/>
  75. <run class="Hello2" ltw="aop5.xml">
  76. <stdout>
  77. <line text="hello"/>
  78. <line text="in advice: s=world"/>
  79. <line text="world"/>
  80. </stdout>
  81. </run>
  82. </ajc-test>
  83. <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 6">
  84. <compile files="Hello2.java JavaHelper.java"/>
  85. <run class="Hello2" ltw="aop6.xml">
  86. <stdout>
  87. <line text="hello"/>
  88. <line text="in advice: s=world"/>
  89. <line text="world"/>
  90. <line text="in advice3: s=world"/>
  91. </stdout>
  92. </run>
  93. </ajc-test>
  94. <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 7">
  95. <compile files="Hello2.java JavaHelper.java"/>
  96. <run class="Hello2" ltw="aop7.xml">
  97. <stdout>
  98. <line text="hello"/>
  99. <line text="in advice4: s=world at execution(int Hello2.say2(String))"/>
  100. <line text="world"/>
  101. <line text="in advice5: s=world at execution(int Hello2.say2(String))"/>
  102. </stdout>
  103. </run>
  104. </ajc-test>
  105. <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 8">
  106. <compile files="Hello2.java JavaHelper.java"/>
  107. <run class="Hello2" ltw="aop8.xml">
  108. <stdout>
  109. <line text="hello"/>
  110. <line text="in advice6: s=world at execution(int Hello2.say2(String))"/>
  111. <line text="world"/>
  112. <line text="in advice7: s=world at execution(int Hello2.say2(String))"/>
  113. </stdout>
  114. </run>
  115. </ajc-test>
  116. <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 9">
  117. <compile files="Hello2.java JavaHelper.java"/>
  118. <run class="Hello2" ltw="aop9.xml">
  119. <stdout>
  120. <line text="in around advice: s=hello at execution(void Hello2.say1(String))"/>
  121. </stdout>
  122. </run>
  123. </ajc-test>
  124. <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 10">
  125. <compile files="Hello2.java JavaHelper.java"/>
  126. <run class="Hello2" ltw="aop10.xml">
  127. <stdout>
  128. <line text="hello"/>
  129. <line text="in around2 advice: s=world at execution(int Hello2.say2(String))"/>
  130. </stdout>
  131. </run>
  132. </ajc-test>
  133. <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 11">
  134. <compile files="Hello2.java JavaHelper.java"/>
  135. <run class="Hello2" ltw="aop11.xml">
  136. <stdout>
  137. <line text="hello"/>
  138. <line text="abcde"/>
  139. </stdout>
  140. </run>
  141. </ajc-test>
  142. <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 12">
  143. <compile files="Hello3.java JavaHelper.java"/>
  144. <run class="Hello3" ltw="aop12.xml">
  145. <stdout>
  146. <line text="hello"/>
  147. <line text="around4 running"/>
  148. <line text="abcde"/>
  149. <line text="from say2=xyz"/>
  150. </stdout>
  151. </run>
  152. </ajc-test>
  153. <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 13">
  154. <compile files="Hello2.java JavaHelper2.java"/>
  155. <run class="Hello2" ltw="aop13.xml">
  156. <stdout>
  157. <line text="in advice"/>
  158. <line text="hello"/>
  159. <line text="in advice"/>
  160. <line text="world"/>
  161. </stdout>
  162. </run>
  163. </ajc-test>
  164. <ajc-test dir="bugs1612/pr354470" title="perthis too pervasive">
  165. <compile files="Code.java" options="-1.5"/>
  166. <run class="Code">
  167. <stdout>
  168. <line text="AAA"/>
  169. <line text="BBB"/>
  170. <line text="CCC"/>
  171. <line text="interface Code$ajcMightHaveAspect"/>
  172. <line text="private transient Code CCC.ajc$Code$perObjectField"/>
  173. </stdout></run>
  174. </ajc-test>
  175. <ajc-test dir="bugs1612/pr354470" title="perthis too pervasive 2">
  176. <compile files="Code2.java" options="-1.5"/>
  177. <run class="Code2">
  178. <stdout>
  179. <line text="execution(void CCC.m())"/>
  180. </stdout></run>
  181. </ajc-test>
  182. <ajc-test dir="bugs1612/pr354470" title="perthis too pervasive 3">
  183. <compile files="Code3.java" options="-1.5"/>
  184. <run class="Code3">
  185. <stdout>
  186. <line text="execution(void CCC.m())"/>
  187. </stdout></run>
  188. </ajc-test>
  189. <ajc-test dir="bugs1612/prx" title="class reference in annotation value">
  190. <compile files="C.java" options="-1.5 -showWeaveInfo">
  191. <message kind="weave" text="Join point 'field-get(int C.i)' in Type 'C' (C.java:17) advised by before advice from 'X' (C.java:22)"/>
  192. </compile>
  193. <run class="C">
  194. </run>
  195. </ajc-test>
  196. <ajc-test dir="bugs1612/prx" title="annotation values not equal">
  197. <compile files="D.java" options="-1.5 -showWeaveInfo">
  198. <message kind="weave" text="Join point 'field-get(int D.i)' in Type 'D' (D.java:20) advised by before advice from 'X' (D.java:26)"/>
  199. <message kind="weave" text="Join point 'field-get(int D.j)' in Type 'D' (D.java:21) advised by before advice from 'X' (D.java:26)"/>
  200. </compile>
  201. <run class="D">
  202. </run>
  203. </ajc-test>
  204. <ajc-test dir="bugs1612/prx" title="class reference in annotation value 3">
  205. <compile files="E.java" options="-1.5 -showWeaveInfo">
  206. <message kind="weave" text="Join point 'field-get(int E.i)' in Type 'E' (E.java:17) advised by before advice from 'X' (E.java:22)"/>
  207. </compile>
  208. <run class="E">
  209. </run>
  210. </ajc-test>
  211. <ajc-test dir="bugs1612/prx" title="annotation values not equal 2">
  212. <compile files="F.java" options="-1.5 -showWeaveInfo">
  213. <message kind="weave" text="Join point 'field-get(int F.i)' in Type 'F' (F.java:20) advised by before advice from 'X' (F.java:26)"/>
  214. <message kind="weave" text="Join point 'field-get(int F.j)' in Type 'F' (F.java:21) advised by before advice from 'X' (F.java:26)"/>
  215. </compile>
  216. <run class="F">
  217. </run>
  218. </ajc-test>
  219. <ajc-test dir="bugs1612/prx" title="class reference in annotation value - invalid typename">
  220. <compile files="G.java" options="-1.5">
  221. <message kind="error" text="Unable to resolve type 'Foo.class' specified for value 'value'"/>
  222. </compile>
  223. </ajc-test>
  224. <ajc-test dir="bugs1612/pr356612" title="annotation field binding optimization">
  225. <compile files="AnnoBinding.java" options="-1.5"/>
  226. <run class="AnnoBinding">
  227. </run>
  228. </ajc-test>
  229. <ajc-test dir="bugs1612/pr356612" title="annotation field binding optimization - 2">
  230. <compile files="AnnoBinding2.java" options="-1.5"/>
  231. <run class="AnnoBinding2">
  232. <stdout>
  233. <line text="get(int AnnoBinding2.field1) @Marker(message=foo)" vm="-1.8"/>
  234. <line text="get(int AnnoBinding2.field1) @Marker(message=&quot;foo&quot;)" vm="9-"/>
  235. <line text="get(int AnnoBinding2.field2) @Marker(message=bar)" vm="-1.8"/>
  236. <line text="get(int AnnoBinding2.field2) @Marker(message=&quot;bar&quot;)" vm="9-"/>
  237. <line text="2 ajc$anno$NNN fields"/>
  238. </stdout>
  239. </run>
  240. </ajc-test>
  241. <ajc-test dir="bugs1612/pr354683" title="itd split compilation">
  242. <compile files="util/CommonData.java util/CommonDataImpl.java util/CommonDataImplementation.aj util/DerivedCommonDataInterface.java util/DerivedCommonDataInterfaceImpl.java util/DerivedCommonDataInterfaceImplementation.aj" options="-1.5" outjar="code.jar"/>
  243. <compile files="main/AbstractBaseClass.java main/DerivedClass.java main/Whatever.java " options="-1.5" aspectpath="code.jar"/>
  244. </ajc-test>
  245. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 1">
  246. <compile files="One.java" options="-1.5"/>
  247. <run class="One">
  248. <stdout>
  249. <line text="In instance check method doit()"/>
  250. <line text="In advice()"/>
  251. <line text="Method m() running"/>
  252. </stdout>
  253. </run>
  254. </ajc-test>
  255. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 2">
  256. <compile files="Two.java" options="-1.5"/>
  257. <run class="Two">
  258. <stdout>
  259. <line text="In instance check method, count=1 so doit returns false"/>
  260. <line text="Method m() running"/>
  261. <line text="In instance check method, count=2 so doit returns true"/>
  262. <line text="In advice()"/>
  263. <line text="Method m() running"/>
  264. <line text="In instance check method, count=3 so doit returns false"/>
  265. <line text="Method m() running"/>
  266. <line text="In instance check method, count=4 so doit returns true"/>
  267. <line text="In advice()"/>
  268. <line text="Method m() running"/>
  269. </stdout>
  270. </run>
  271. </ajc-test>
  272. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 3">
  273. <compile files="Three.java" options="-1.5"/>
  274. <run class="Three">
  275. <stdout>
  276. <line text="Method m() running"/>
  277. <line text="In instance check method, count=1 so doit returns false"/>
  278. <line text="Method m() running"/>
  279. <line text="In instance check method, count=2 so doit returns true"/>
  280. <line text="In advice()"/>
  281. <line text="Method m() running"/>
  282. <line text="In instance check method, count=3 so doit returns false"/>
  283. <line text="Method m() running"/>
  284. <line text="In instance check method, count=4 so doit returns true"/>
  285. <line text="In advice()"/>
  286. </stdout>
  287. </run>
  288. </ajc-test>
  289. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 4">
  290. <compile files="Four.java" options="-1.5"/>
  291. <run class="Four">
  292. <stdout>
  293. <line text="In instance check method doit()"/>
  294. <line text="In advice() execution(void Four.m())"/>
  295. <line text="Method m() running"/>
  296. </stdout>
  297. </run>
  298. </ajc-test>
  299. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 5">
  300. <compile files="Five.java" options="-1.5"/>
  301. <run class="Five">
  302. <stdout>
  303. <line text="In instance check method doit()"/>
  304. <line text="In advice() arg0=abc"/>
  305. <line text="Method m() running"/>
  306. </stdout>
  307. </run>
  308. </ajc-test>
  309. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 6">
  310. <compile files="Six.java" options="-1.5"/>
  311. <run class="Six">
  312. <stdout>
  313. <line text="In instance check method doit()"/>
  314. <line text="In advice() execution(void Six.main(String[]))"/>
  315. <line text="Method m() running"/>
  316. </stdout>
  317. </run>
  318. </ajc-test>
  319. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 7">
  320. <compile files="Seven.java" options="-1.5"/>
  321. <run class="Seven">
  322. <stdout>
  323. <line text="In instance check method doit()"/>
  324. <line text="In advice() call(void Seven.m()) execution(void Seven.main(String[]))"/>
  325. <line text="Method m() running"/>
  326. </stdout>
  327. </run>
  328. </ajc-test>
  329. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 8">
  330. <compile files="Eight.java" options="-1.5"/>
  331. <run class="Eight">
  332. <stdout>
  333. <line text="in doit(): class=X"/>
  334. <line text="In advice()"/>
  335. <line text="Method m() running"/>
  336. </stdout>
  337. </run>
  338. </ajc-test>
  339. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 9">
  340. <compile files="Nine.java" options="-1.5"/>
  341. <run class="Nine">
  342. <stdout>
  343. <line text="in doit(): class=X"/>
  344. <line text="In advice()"/>
  345. <line text="Method m() running"/>
  346. </stdout>
  347. </run>
  348. </ajc-test>
  349. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 10">
  350. <compile files="Ten.java" options="-1.5"/>
  351. <run class="com.foo.bar.Ten">
  352. <stdout>
  353. <line text="In instance check method doit() class=com.foo.bar.X"/>
  354. <line text="In advice()"/>
  355. <line text="Method m() running"/>
  356. </stdout>
  357. </run>
  358. </ajc-test>
  359. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 11">
  360. <compile files="Eleven.java" options="-1.5">
  361. <message kind="error" text="thisAspectInstance can only be used inside an if() clause for singleton aspects (compiler limitation)"/>
  362. </compile>
  363. </ajc-test>
  364. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 12">
  365. <compile files="Twelve.java" options="-1.5"/>
  366. <run class="Twelve">
  367. <stdout>
  368. <line text="In instance check method doit()"/>
  369. <line text="In advice() arg=abc tjpsp=execution(void Twelve.m(String))"/>
  370. <line text="Method m() running"/>
  371. </stdout>
  372. </run>
  373. </ajc-test>
  374. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 13">
  375. <compile files="Thirteen.java" options="-1.5"/>
  376. <run class="Thirteen">
  377. <stdout>
  378. <line text="instance is X"/>
  379. <line text="In advice() arg=abc tjpsp=execution(void Thirteen.m(String))"/>
  380. <line text="Method m() running"/>
  381. </stdout>
  382. </run>
  383. </ajc-test>
  384. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 14">
  385. <compile files="Fourteen.java" options="-1.5"/>
  386. <run class="Fourteen">
  387. <stdout>
  388. <line text="instance is X"/>
  389. <line text="In advice()"/>
  390. <line text="Method m() running"/>
  391. </stdout>
  392. </run>
  393. </ajc-test>
  394. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 15">
  395. <compile files="Fifteen.java" options="-1.5"/>
  396. <run class="Fifteen">
  397. <stdout>
  398. <line text="in doit(): class=X"/>
  399. <line text="In advice()"/>
  400. <line text="Method m() running"/>
  401. </stdout>
  402. </run>
  403. </ajc-test>
  404. <ajc-test dir="bugs1612/doubleITDF" title="double itdf">
  405. <compile files="A.java" options="-1.7"/>
  406. <run class="A">
  407. <stdout>
  408. <line text="AA"/>
  409. </stdout>
  410. </run>
  411. </ajc-test>
  412. <ajc-test dir="bugs1612/verify" title="verify perthis">
  413. <compile files="Runner.aj" inpath="code.jar" classpath="groovy-1.8.0.jar,asm-3.2.jar" options="-1.6 -Xset:generateStackMaps=true"/>
  414. <run class="Runner">
  415. <stdout>
  416. <line text="AA"/>
  417. </stdout>
  418. </run>
  419. </ajc-test>
  420. <ajc-test dir="bugs1612/pr353936" title="local variable tables">
  421. <compile files="Code.java" options="-1.5"/>
  422. </ajc-test>
  423. <ajc-test dir="bugs1612/pr352363" title="empty pattern">
  424. <compile files="Code.java" options="-1.5">
  425. <message line="12" kind="warning" text="name is empty1"/>
  426. <message line="13" kind="warning" text="name is empty2"/>
  427. </compile>
  428. </ajc-test>
  429. <ajc-test dir="bugs1612/pr351592" title="generics issue">
  430. <compile files="Test.java Fib.java FibCaching.aj Caching.aj" options="-1.5"/>
  431. <run class="caching.Test"/>
  432. </ajc-test>
  433. <ajc-test dir="bugs1612/pr351592" title="generics issue - 2">
  434. <compile files="Test.java Fib.java FibCaching.aj Caching.aj" options="-1.5"/>
  435. <run class="caching.Test"/>
  436. </ajc-test>
  437. <ajc-test dir="bugs1612/pr350800" title="generics npe">
  438. <compile files="AbstractAdapter.java AbstractProbingAspect.java Adapter.java ProbingAspect.java" options="-1.5"/>
  439. <!-- run class="com.example.MyAspectTest" -->
  440. </ajc-test>
  441. <ajc-test dir="bugs1612/pr350800_2" title="generics npe - code">
  442. <compile files="AbstractAdapter.java AbstractProbingAspect.java Adapter.java ProbingAspect.java" options="-1.5"/>
  443. <!-- run class="com.example.MyAspectTest" -->
  444. </ajc-test>
  445. <ajc-test dir="bugs1612/pr350800_3" title="generics npe - 3">
  446. <compile files="AbstractAdapter.java AbstractProbingAspect.java Adapter.java ProbingAspect.java" options="-1.5"/>
  447. <run class="test.aop.Adapter">
  448. <stdout>
  449. <line text="&gt;hello"/>
  450. </stdout>
  451. </run>
  452. </ajc-test>
  453. <ajc-test dir="bugs1612/pr349961" title="ordering">
  454. <compile files="MyParameterAnnotation.java MyAspect.java MyAspectTest.java A.java ABean.java" options="-1.5"/>
  455. <run class="com.example.MyAspectTest">
  456. </run>
  457. </ajc-test>
  458. <ajc-test dir="bugs1612/pr349961" title="ordering - 2">
  459. <compile files="MyParameterAnnotation.java MyAspect.java MyAspectTest.java ABean.java A.java" options="-1.5"/>
  460. <run class="com.example.MyAspectTest">
  461. </run>
  462. </ajc-test>
  463. <ajc-test dir="bugs1612/pr347395" title="verifyerror - inline">
  464. <compile files="Target.java Task.java TaskHistoryAspect.aj TaskModification.java" options="-1.5"/>
  465. <run class="xxx.util.Target">
  466. </run>
  467. </ajc-test>
  468. <ajc-test dir="bugs1612/pr349398" title="duplicate methods">
  469. <compile files="DataGenerator.java CacheAspect.java DataGeneratorCacheAspect.java DataGeneratorTest.java" options="-1.5"/>
  470. <run class="DataGeneratorTest">
  471. </run>
  472. </ajc-test>
  473. <ajc-test dir="bugs1612/pr347684" title="binding ints">
  474. <compile files="BindingInts.java" options="-1.5"/>
  475. <run class="BindingInts">
  476. <stdout>
  477. <line text="execution(void BindingInts.a()) 37"/>
  478. </stdout>
  479. </run>
  480. </ajc-test>
  481. <ajc-test dir="bugs1612/pr347684" title="binding ints - 2">
  482. <compile files="BindingInts2.java" options="-1.5"/>
  483. <run class="BindingInts2">
  484. <stdout>
  485. <line text="execution(void BindingInts2.a()) 99"/>
  486. </stdout>
  487. </run>
  488. </ajc-test>
  489. <ajc-test dir="bugs1612/pr347684" title="binding ints - 3">
  490. <compile files="BindingInts3.java" options="-1.5"/>
  491. <run class="BindingInts3">
  492. <stdout>
  493. <line text="execution(void BindingInts3.a()) abc"/>
  494. </stdout>
  495. </run>
  496. </ajc-test>
  497. <ajc-test dir="bugs1612/pr347684" title="binding ints - 4">
  498. <compile files="BindingInts4.java" options="-1.5"/>
  499. <run class="BindingInts4">
  500. <stdout>
  501. <line text="execution(void BindingInts4.a()) 37 48"/>
  502. </stdout>
  503. </run>
  504. </ajc-test>
  505. <ajc-test dir="bugs1612/pr347684" title="binding ints - 5">
  506. <compile files="BindingInts5.java" options="-1.5"/>
  507. <run class="BindingInts5">
  508. <stdout>
  509. <line text="execution(void BindingInts5.a()) 37"/>
  510. </stdout>
  511. </run>
  512. </ajc-test>
  513. <ajc-test dir="bugs1612/pr347684" title="binding ints - 6">
  514. <compile files="BindingInts6.java" options="-1.5"/>
  515. <run class="BindingInts6">
  516. <stdout>
  517. <line text="execution(void BindingInts6.a()) 37 1 99"/>
  518. </stdout>
  519. </run>
  520. </ajc-test>
  521. <ajc-test dir="bugs1612/pr345515" title="anno copying">
  522. <compile files="Code.java" options="-1.5"/>
  523. <run class="Code"/>
  524. </ajc-test>
  525. <ajc-test dir="bugs1612/pr327867" title="synthetic methods">
  526. <compile files="Foo.java" options="-1.5 -showWeaveInfo">
  527. <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)"/>
  528. <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)"/>
  529. </compile>
  530. <run class="Foo"/>
  531. </ajc-test>
  532. <ajc-test dir="bugs1612/pr345172" title="incorrect annos">
  533. <compile files="InterType.java" options="-1.5 -showWeaveInfo">
  534. <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)"/>
  535. <!--
  536. <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)"/>
  537. <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)"/>
  538. -->
  539. <message kind="weave" text="Type 'InterType$InterTypeIfc' (InterType.java) has intertyped method from 'InterType' (InterType.java:'void InterType$InterTypeIfc.m1(int)')"/>
  540. <message kind="weave" text="Type 'InterType$InterTypeIfc' (InterType.java) has intertyped method from 'InterType' (InterType.java:'void InterType$InterTypeIfc.m1(int, int)')"/>
  541. </compile>
  542. <run class="InterType"/>
  543. </ajc-test>
  544. <ajc-test dir="bugs1612/pr345172" title="incorrect annos 2">
  545. <compile files="InterType2.java" options="-1.5">
  546. </compile>
  547. <run class="InterType2">
  548. <stdout>
  549. <line text="execution(void InterType2.InterTypeIfc.m1(int))"/>
  550. </stdout></run>
  551. </ajc-test>
  552. <ajc-test dir="bugs1612/pr345172" title="incorrect annos 3">
  553. <compile files="InterType3.java" options="-1.5">
  554. </compile>
  555. <run class="InterType3">
  556. <stdout>
  557. <line text="execution(void InterType3.InterTypeIfc.m1(int, String))"/>
  558. </stdout></run>
  559. </ajc-test>
  560. <ajc-test dir="bugs1612/pr328099" title="signed jar ltw">
  561. <compile files="X.java" classpath="code.jar"/>
  562. <run class="foo.bar.FooLaunch" ltw="aop.xml" classpath="$sandbox/code.jar">
  563. <stdout>
  564. <line text="pre...Foo.bar()...post"/>
  565. </stdout>
  566. </run>
  567. </ajc-test>
  568. <ajc-test dir="bugs1612/pr315398" title="verifyerror">
  569. <compile files="Code.java" options="-1.5">
  570. </compile>
  571. <run class="Code">
  572. <stdout>
  573. <line text="1"/>
  574. <line text="advice"/>
  575. <line text="2"/>
  576. </stdout></run>
  577. </ajc-test>
  578. <ajc-test dir="bugs1612/pr315398" title="verifyerror - 2">
  579. <compile files="Code2.java" options="-1.5">
  580. </compile>
  581. <run class="Code2"/>
  582. </ajc-test>
  583. <ajc-test dir="bugs1612/pr335810" title="rawtype warning">
  584. <compile files="One.java" options="-1.5 -warn:+raw -warn:+unchecked -warn:+warningToken">
  585. </compile>
  586. </ajc-test>
  587. <ajc-test dir="bugs1612/pr327134" title="rawtype pointcut">
  588. <compile files="Code.java" options="-1.5 -warn:+raw -warn:+warningToken">
  589. </compile>
  590. </ajc-test>
  591. <ajc-test dir="bugs1612/pr344005" title="decp generics">
  592. <compile files="Anno.java Types.java Azpect.java" options="-1.5 -showWeaveInfo">
  593. <message kind="weave" text="XX"/>
  594. </compile>
  595. </ajc-test>
  596. <ajc-test dir="bugs1612/pr343051" title="illegalaccesserror">
  597. <compile files="Code.java Code2.java Azpect.java" options="-1.5"/>
  598. <run class="p.Code">
  599. <stdout>
  600. <line text="abc"/>
  601. </stdout>
  602. </run>
  603. </ajc-test>
  604. <ajc-test dir="bugs1612/pr339974" title="itit npe">
  605. <compile files="City.java TrafficCalculator.java" options="-1.5">
  606. <message kind="error" text="The nested type TrafficCalculator cannot hide an enclosing type"/>
  607. </compile>
  608. </ajc-test>
  609. <ajc-test dir="bugs1612/pr342605" title="noimporterror">
  610. <compile files="Code.java" options="-1.5 -noImportError"/>
  611. <run class="Code"/>
  612. </ajc-test>
  613. <ajc-test dir="bugs1612/pr342323" title="clashing local types">
  614. <compile files="Runner.java Bean.java Azpect.java" options="-1.5"/>
  615. <run class="ppp.Runner">
  616. <stdout>
  617. <line text="Calling regular method"/>
  618. <line text="class"/>
  619. <line text="Calling itd method"/>
  620. <line text="aspect foo"/>
  621. </stdout>
  622. </run>
  623. </ajc-test>
  624. <ajc-test dir="bugs1612/pr338175" title="itit">
  625. <compile files="pack1/Aspect.java pack2/Java.java pack2/Java2.java" options="-1.5">
  626. <message kind="error" text="Duplicate nested type ITIT"/>
  627. <message kind="error" text="can't determine modifiers"/>
  628. </compile>
  629. </ajc-test>
  630. <ajc-test dir="bugs1612/pr292239" title="throws clause">
  631. <compile files="Code.java" options="-1.5 -showWeaveInfo">
  632. <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)"/>
  633. </compile>
  634. <run class="mypackage.Code">
  635. <stdout>
  636. <line text="caught it"/>
  637. <line text="done"/>
  638. </stdout>
  639. </run>
  640. </ajc-test>
  641. <ajc-test dir="bugs1612/pr292239" title="throws clause - 2">
  642. <compile files="Code2.java" options="-1.5 -showWeaveInfo">
  643. <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)"/>
  644. </compile>
  645. <run class="mypackage.Code2">
  646. <stdout>
  647. <line text="caught it: execution(void mypackage.Code2.n2())"/>
  648. <line text="done"/>
  649. </stdout>
  650. </run>
  651. </ajc-test>
  652. <!--
  653. <ajc-test dir="bugs1611/pr336136" title="itit">
  654. <compile files="Country_Roo_Op4j.java">
  655. <message kind="error" text="The import com.foo cannot be resolved" line="1"/>
  656. <message kind="error" text="The import org.javaruntype cannot be resolved" line="3"/>
  657. <message kind="error" text="The import org.op4j cannot be resolved" line="4"/>
  658. <message kind="error" text="The import org.op4j cannot be resolved" line="5"/>
  659. <message kind="error" text="Country cannot be resolved to a type" line="9"/>
  660. <message kind="error" text="Function cannot be resolved to a type" line="11"/>
  661. <message kind="error" text="can't determine modifiers of missing type Country_Roo_Op4j$Keys"/>
  662. </compile>"
  663. </ajc-test>
  664. -->
  665. </suite>