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

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