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

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