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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs1612/pr354470" title="perthis too pervasive">
  4. <compile files="Code.java" options="-1.5"/>
  5. <run class="Code">
  6. <stdout>
  7. <line text="AAA"/>
  8. <line text="BBB"/>
  9. <line text="CCC"/>
  10. <line text="interface Code$ajcMightHaveAspect"/>
  11. <line text="private transient Code CCC.ajc$Code$perObjectField"/>
  12. </stdout></run>
  13. </ajc-test>
  14. <ajc-test dir="bugs1612/pr354470" title="perthis too pervasive 2">
  15. <compile files="Code2.java" options="-1.5"/>
  16. <run class="Code2">
  17. <stdout>
  18. <line text="execution(void CCC.m())"/>
  19. </stdout></run>
  20. </ajc-test>
  21. <ajc-test dir="bugs1612/pr354470" title="perthis too pervasive 3">
  22. <compile files="Code3.java" options="-1.5"/>
  23. <run class="Code3">
  24. <stdout>
  25. <line text="execution(void CCC.m())"/>
  26. </stdout></run>
  27. </ajc-test>
  28. <ajc-test dir="bugs1612/prx" title="class reference in annotation value">
  29. <compile files="C.java" options="-1.5 -showWeaveInfo">
  30. <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)"/>
  31. </compile>
  32. <run class="C">
  33. </run>
  34. </ajc-test>
  35. <ajc-test dir="bugs1612/prx" title="annotation values not equal">
  36. <compile files="D.java" options="-1.5 -showWeaveInfo">
  37. <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)"/>
  38. <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)"/>
  39. </compile>
  40. <run class="D">
  41. </run>
  42. </ajc-test>
  43. <ajc-test dir="bugs1612/prx" title="class reference in annotation value 3">
  44. <compile files="E.java" options="-1.5 -showWeaveInfo">
  45. <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)"/>
  46. </compile>
  47. <run class="E">
  48. </run>
  49. </ajc-test>
  50. <ajc-test dir="bugs1612/prx" title="annotation values not equal 2">
  51. <compile files="F.java" options="-1.5 -showWeaveInfo">
  52. <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)"/>
  53. <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)"/>
  54. </compile>
  55. <run class="F">
  56. </run>
  57. </ajc-test>
  58. <ajc-test dir="bugs1612/prx" title="class reference in annotation value - invalid typename">
  59. <compile files="G.java" options="-1.5">
  60. <message kind="error" text="Unable to resolve type 'Foo.class' specified for value 'value'"/>
  61. </compile>
  62. </ajc-test>
  63. <ajc-test dir="bugs1612/pr356612" title="annotation field binding optimization">
  64. <compile files="AnnoBinding.java" options="-1.5"/>
  65. <run class="AnnoBinding">
  66. </run>
  67. </ajc-test>
  68. <ajc-test dir="bugs1612/pr356612" title="annotation field binding optimization - 2">
  69. <compile files="AnnoBinding2.java" options="-1.5"/>
  70. <run class="AnnoBinding2">
  71. <stdout>
  72. <line text="get(int AnnoBinding2.field1) @Marker(message=foo)"/>
  73. <line text="get(int AnnoBinding2.field2) @Marker(message=bar)"/>
  74. <line text="2 ajc$anno$NNN fields"/>
  75. </stdout>
  76. </run>
  77. </ajc-test>
  78. <ajc-test dir="bugs1612/pr354683" title="itd split compilation">
  79. <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"/>
  80. <compile files="main/AbstractBaseClass.java main/DerivedClass.java main/Whatever.java " options="-1.5" aspectpath="code.jar"/>
  81. </ajc-test>
  82. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 1">
  83. <compile files="One.java" options="-1.5"/>
  84. <run class="One">
  85. <stdout>
  86. <line text="In instance check method doit()"/>
  87. <line text="In advice()"/>
  88. <line text="Method m() running"/>
  89. </stdout>
  90. </run>
  91. </ajc-test>
  92. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 2">
  93. <compile files="Two.java" options="-1.5"/>
  94. <run class="Two">
  95. <stdout>
  96. <line text="In instance check method, count=1 so doit returns false"/>
  97. <line text="Method m() running"/>
  98. <line text="In instance check method, count=2 so doit returns true"/>
  99. <line text="In advice()"/>
  100. <line text="Method m() running"/>
  101. <line text="In instance check method, count=3 so doit returns false"/>
  102. <line text="Method m() running"/>
  103. <line text="In instance check method, count=4 so doit returns true"/>
  104. <line text="In advice()"/>
  105. <line text="Method m() running"/>
  106. </stdout>
  107. </run>
  108. </ajc-test>
  109. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 3">
  110. <compile files="Three.java" options="-1.5"/>
  111. <run class="Three">
  112. <stdout>
  113. <line text="Method m() running"/>
  114. <line text="In instance check method, count=1 so doit returns false"/>
  115. <line text="Method m() running"/>
  116. <line text="In instance check method, count=2 so doit returns true"/>
  117. <line text="In advice()"/>
  118. <line text="Method m() running"/>
  119. <line text="In instance check method, count=3 so doit returns false"/>
  120. <line text="Method m() running"/>
  121. <line text="In instance check method, count=4 so doit returns true"/>
  122. <line text="In advice()"/>
  123. </stdout>
  124. </run>
  125. </ajc-test>
  126. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 4">
  127. <compile files="Four.java" options="-1.5"/>
  128. <run class="Four">
  129. <stdout>
  130. <line text="In instance check method doit()"/>
  131. <line text="In advice() execution(void Four.m())"/>
  132. <line text="Method m() running"/>
  133. </stdout>
  134. </run>
  135. </ajc-test>
  136. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 5">
  137. <compile files="Five.java" options="-1.5"/>
  138. <run class="Five">
  139. <stdout>
  140. <line text="In instance check method doit()"/>
  141. <line text="In advice() arg0=abc"/>
  142. <line text="Method m() running"/>
  143. </stdout>
  144. </run>
  145. </ajc-test>
  146. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 6">
  147. <compile files="Six.java" options="-1.5"/>
  148. <run class="Six">
  149. <stdout>
  150. <line text="In instance check method doit()"/>
  151. <line text="In advice() execution(void Six.main(String[]))"/>
  152. <line text="Method m() running"/>
  153. </stdout>
  154. </run>
  155. </ajc-test>
  156. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 7">
  157. <compile files="Seven.java" options="-1.5"/>
  158. <run class="Seven">
  159. <stdout>
  160. <line text="In instance check method doit()"/>
  161. <line text="In advice() call(void Seven.m()) execution(void Seven.main(String[]))"/>
  162. <line text="Method m() running"/>
  163. </stdout>
  164. </run>
  165. </ajc-test>
  166. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 8">
  167. <compile files="Eight.java" options="-1.5"/>
  168. <run class="Eight">
  169. <stdout>
  170. <line text="in doit(): class=X"/>
  171. <line text="In advice()"/>
  172. <line text="Method m() running"/>
  173. </stdout>
  174. </run>
  175. </ajc-test>
  176. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 9">
  177. <compile files="Nine.java" options="-1.5"/>
  178. <run class="Nine">
  179. <stdout>
  180. <line text="in doit(): class=X"/>
  181. <line text="In advice()"/>
  182. <line text="Method m() running"/>
  183. </stdout>
  184. </run>
  185. </ajc-test>
  186. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 10">
  187. <compile files="Ten.java" options="-1.5"/>
  188. <run class="com.foo.bar.Ten">
  189. <stdout>
  190. <line text="In instance check method doit() class=com.foo.bar.X"/>
  191. <line text="In advice()"/>
  192. <line text="Method m() running"/>
  193. </stdout>
  194. </run>
  195. </ajc-test>
  196. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 11">
  197. <compile files="Eleven.java" options="-1.5">
  198. <message kind="error" text="thisAspectInstance can only be used inside an if() clause for singleton aspects (compiler limitation)"/>
  199. </compile>
  200. </ajc-test>
  201. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 12">
  202. <compile files="Twelve.java" options="-1.5"/>
  203. <run class="Twelve">
  204. <stdout>
  205. <line text="In instance check method doit()"/>
  206. <line text="In advice() arg=abc tjpsp=execution(void Twelve.m(String))"/>
  207. <line text="Method m() running"/>
  208. </stdout>
  209. </run>
  210. </ajc-test>
  211. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 13">
  212. <compile files="Thirteen.java" options="-1.5"/>
  213. <run class="Thirteen">
  214. <stdout>
  215. <line text="instance is X"/>
  216. <line text="In advice() arg=abc tjpsp=execution(void Thirteen.m(String))"/>
  217. <line text="Method m() running"/>
  218. </stdout>
  219. </run>
  220. </ajc-test>
  221. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 14">
  222. <compile files="Fourteen.java" options="-1.5"/>
  223. <run class="Fourteen">
  224. <stdout>
  225. <line text="instance is X"/>
  226. <line text="In advice()"/>
  227. <line text="Method m() running"/>
  228. </stdout>
  229. </run>
  230. </ajc-test>
  231. <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 15">
  232. <compile files="Fifteen.java" options="-1.5"/>
  233. <run class="Fifteen">
  234. <stdout>
  235. <line text="in doit(): class=X"/>
  236. <line text="In advice()"/>
  237. <line text="Method m() running"/>
  238. </stdout>
  239. </run>
  240. </ajc-test>
  241. <ajc-test dir="bugs1612/doubleITDF" title="double itdf">
  242. <compile files="A.java" options="-1.7"/>
  243. <run class="A">
  244. <stdout>
  245. <line text="AA"/>
  246. </stdout>
  247. </run>
  248. </ajc-test>
  249. <ajc-test dir="bugs1612/verify" title="verify perthis">
  250. <compile files="Runner.aj" inpath="code.jar" classpath="groovy-1.8.0.jar;asm-3.2.jar" options="-1.6 -Xset:generateStackMaps=true"/>
  251. <run class="Runner">
  252. <stdout>
  253. <line text="AA"/>
  254. </stdout>
  255. </run>
  256. </ajc-test>
  257. <ajc-test dir="bugs1612/pr353936" title="local variable tables">
  258. <compile files="Code.java" options="-1.5"/>
  259. </ajc-test>
  260. <ajc-test dir="bugs1612/pr352363" title="empty pattern">
  261. <compile files="Code.java" options="-1.5">
  262. <message line="12" kind="warning" text="name is empty1"/>
  263. <message line="13" kind="warning" text="name is empty2"/>
  264. </compile>
  265. </ajc-test>
  266. <ajc-test dir="bugs1612/pr351592" title="generics issue">
  267. <compile files="Test.java Fib.java FibCaching.aj Caching.aj" options="-1.5"/>
  268. <run class="caching.Test"/>
  269. </ajc-test>
  270. <ajc-test dir="bugs1612/pr351592" title="generics issue - 2">
  271. <compile files="Test.java Fib.java FibCaching.aj Caching.aj" options="-1.5"/>
  272. <run class="caching.Test"/>
  273. </ajc-test>
  274. <ajc-test dir="bugs1612/pr350800" title="generics npe">
  275. <compile files="AbstractAdapter.java AbstractProbingAspect.java Adapter.java ProbingAspect.java" options="-1.5"/>
  276. <!-- run class="com.example.MyAspectTest" -->
  277. </ajc-test>
  278. <ajc-test dir="bugs1612/pr350800_2" title="generics npe - code">
  279. <compile files="AbstractAdapter.java AbstractProbingAspect.java Adapter.java ProbingAspect.java" options="-1.5"/>
  280. <!-- run class="com.example.MyAspectTest" -->
  281. </ajc-test>
  282. <ajc-test dir="bugs1612/pr350800_3" title="generics npe - 3">
  283. <compile files="AbstractAdapter.java AbstractProbingAspect.java Adapter.java ProbingAspect.java" options="-1.5"/>
  284. <run class="test.aop.Adapter">
  285. <stdout>
  286. <line text="&gt;hello"/>
  287. </stdout>
  288. </run>
  289. </ajc-test>
  290. <ajc-test dir="bugs1612/pr349961" title="ordering">
  291. <compile files="MyParameterAnnotation.java MyAspect.java MyAspectTest.java A.java ABean.java" options="-1.5"/>
  292. <run class="com.example.MyAspectTest">
  293. </run>
  294. </ajc-test>
  295. <ajc-test dir="bugs1612/pr349961" title="ordering - 2">
  296. <compile files="MyParameterAnnotation.java MyAspect.java MyAspectTest.java ABean.java A.java" options="-1.5"/>
  297. <run class="com.example.MyAspectTest">
  298. </run>
  299. </ajc-test>
  300. <ajc-test dir="bugs1612/pr347395" title="verifyerror - inline">
  301. <compile files="Target.java Task.java TaskHistoryAspect.aj TaskModification.java" options="-1.5"/>
  302. <run class="xxx.util.Target">
  303. </run>
  304. </ajc-test>
  305. <ajc-test dir="bugs1612/pr349398" title="duplicate methods">
  306. <compile files="DataGenerator.java CacheAspect.java DataGeneratorCacheAspect.java DataGeneratorTest.java" options="-1.5"/>
  307. <run class="DataGeneratorTest">
  308. </run>
  309. </ajc-test>
  310. <ajc-test dir="bugs1612/pr347684" title="binding ints">
  311. <compile files="BindingInts.java" options="-1.5"/>
  312. <run class="BindingInts">
  313. <stdout>
  314. <line text="execution(void BindingInts.a()) 37"/>
  315. </stdout>
  316. </run>
  317. </ajc-test>
  318. <ajc-test dir="bugs1612/pr347684" title="binding ints - 2">
  319. <compile files="BindingInts2.java" options="-1.5"/>
  320. <run class="BindingInts2">
  321. <stdout>
  322. <line text="execution(void BindingInts2.a()) 99"/>
  323. </stdout>
  324. </run>
  325. </ajc-test>
  326. <ajc-test dir="bugs1612/pr347684" title="binding ints - 3">
  327. <compile files="BindingInts3.java" options="-1.5"/>
  328. <run class="BindingInts3">
  329. <stdout>
  330. <line text="execution(void BindingInts3.a()) abc"/>
  331. </stdout>
  332. </run>
  333. </ajc-test>
  334. <ajc-test dir="bugs1612/pr347684" title="binding ints - 4">
  335. <compile files="BindingInts4.java" options="-1.5"/>
  336. <run class="BindingInts4">
  337. <stdout>
  338. <line text="execution(void BindingInts4.a()) 37 48"/>
  339. </stdout>
  340. </run>
  341. </ajc-test>
  342. <ajc-test dir="bugs1612/pr347684" title="binding ints - 5">
  343. <compile files="BindingInts5.java" options="-1.5"/>
  344. <run class="BindingInts5">
  345. <stdout>
  346. <line text="execution(void BindingInts5.a()) 37"/>
  347. </stdout>
  348. </run>
  349. </ajc-test>
  350. <ajc-test dir="bugs1612/pr347684" title="binding ints - 6">
  351. <compile files="BindingInts6.java" options="-1.5"/>
  352. <run class="BindingInts6">
  353. <stdout>
  354. <line text="execution(void BindingInts6.a()) 37 1 99"/>
  355. </stdout>
  356. </run>
  357. </ajc-test>
  358. <ajc-test dir="bugs1612/pr345515" title="anno copying">
  359. <compile files="Code.java" options="-1.5"/>
  360. <run class="Code"></run>
  361. </ajc-test>
  362. <ajc-test dir="bugs1612/pr327867" title="synthetic methods">
  363. <compile files="Foo.java" options="-1.5 -showWeaveInfo">
  364. <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)"/>
  365. <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)"/>
  366. </compile>
  367. <run class="Foo"/>
  368. </ajc-test>
  369. <ajc-test dir="bugs1612/pr345172" title="incorrect annos">
  370. <compile files="InterType.java" options="-1.5 -showWeaveInfo">
  371. <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)"/>
  372. <!--
  373. <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)"/>
  374. <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)"/>
  375. -->
  376. <message kind="weave" text="Type 'InterType$InterTypeIfc' (InterType.java) has intertyped method from 'InterType' (InterType.java:'void InterType$InterTypeIfc.m1(int)')"/>
  377. <message kind="weave" text="Type 'InterType$InterTypeIfc' (InterType.java) has intertyped method from 'InterType' (InterType.java:'void InterType$InterTypeIfc.m1(int, int)')"/>
  378. </compile>
  379. <run class="InterType"/>
  380. </ajc-test>
  381. <ajc-test dir="bugs1612/pr345172" title="incorrect annos 2">
  382. <compile files="InterType2.java" options="-1.5">
  383. </compile>
  384. <run class="InterType2">
  385. <stdout>
  386. <line text="execution(void InterType2.InterTypeIfc.m1(int))"/>
  387. </stdout></run>
  388. </ajc-test>
  389. <ajc-test dir="bugs1612/pr345172" title="incorrect annos 3">
  390. <compile files="InterType3.java" options="-1.5">
  391. </compile>
  392. <run class="InterType3">
  393. <stdout>
  394. <line text="execution(void InterType3.InterTypeIfc.m1(int, String))"/>
  395. </stdout></run>
  396. </ajc-test>
  397. <ajc-test dir="bugs1612/pr328099" title="signed jar ltw">
  398. <compile files="X.java" classpath="code.jar"/>
  399. <run class="foo.bar.FooLaunch" ltw="aop.xml" classpath="$sandbox/code.jar">
  400. <stdout>
  401. <line text="pre...Foo.bar()...post"/>
  402. </stdout>
  403. </run>
  404. </ajc-test>
  405. <ajc-test dir="bugs1612/pr315398" title="verifyerror">
  406. <compile files="Code.java" options="-1.5">
  407. </compile>
  408. <run class="Code">
  409. <stdout>
  410. <line text="1"/>
  411. <line text="advice"/>
  412. <line text="2"/>
  413. </stdout></run>
  414. </ajc-test>
  415. <ajc-test dir="bugs1612/pr315398" title="verifyerror - 2">
  416. <compile files="Code2.java" options="-1.5">
  417. </compile>
  418. <run class="Code2"></run>
  419. </ajc-test>
  420. <ajc-test dir="bugs1612/pr335810" title="rawtype warning">
  421. <compile files="One.java" options="-1.5 -warn:+raw -warn:+warningToken">
  422. </compile>
  423. </ajc-test>
  424. <ajc-test dir="bugs1612/pr327134" title="rawtype pointcut">
  425. <compile files="Code.java" options="-1.5 -warn:+raw -warn:+warningToken">
  426. </compile>
  427. </ajc-test>
  428. <ajc-test dir="bugs1612/pr344005" title="decp generics">
  429. <compile files="Anno.java Types.java Azpect.java" options="-1.5 -showWeaveInfo">
  430. <message kind="weave" text="XX"/>
  431. </compile>
  432. </ajc-test>
  433. <ajc-test dir="bugs1612/pr343051" title="illegalaccesserror">
  434. <compile files="Code.java Code2.java Azpect.java" options="-1.5"/>
  435. <run class="p.Code">
  436. <stdout>
  437. <line text="abc"/>
  438. </stdout>
  439. </run>
  440. </ajc-test>
  441. <ajc-test dir="bugs1612/pr339974" title="itit npe">
  442. <compile files="City.java TrafficCalculator.java" options="-1.5">
  443. <message kind="error" text="The nested type TrafficCalculator cannot hide an enclosing type"/>
  444. </compile>
  445. </ajc-test>
  446. <ajc-test dir="bugs1612/pr342605" title="noimporterror">
  447. <compile files="Code.java" options="-1.5 -noImportError"/>
  448. <run class="Code"/>
  449. </ajc-test>
  450. <ajc-test dir="bugs1612/pr342323" title="clashing local types">
  451. <compile files="Runner.java Bean.java Azpect.java" options="-1.5"/>
  452. <run class="ppp.Runner">
  453. <stdout>
  454. <line text="Calling regular method"/>
  455. <line text="class"/>
  456. <line text="Calling itd method"/>
  457. <line text="aspect foo"/>
  458. </stdout>
  459. </run>
  460. </ajc-test>
  461. <ajc-test dir="bugs1612/pr338175" title="itit">
  462. <compile files="pack1/Aspect.java pack2/Java.java pack2/Java2.java" options="-1.5">
  463. <message kind="error" text="Duplicate nested type ITIT"/>
  464. <message kind="error" text="can't determine modifiers"/>
  465. </compile>
  466. </ajc-test>
  467. <ajc-test dir="bugs1612/pr292239" title="throws clause">
  468. <compile files="Code.java" options="-1.5 -showWeaveInfo">
  469. <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)"/>
  470. </compile>
  471. <run class="mypackage.Code">
  472. <stdout>
  473. <line text="caught it"/>
  474. <line text="done"/>
  475. </stdout>
  476. </run>
  477. </ajc-test>
  478. <ajc-test dir="bugs1612/pr292239" title="throws clause - 2">
  479. <compile files="Code2.java" options="-1.5 -showWeaveInfo">
  480. <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)"/>
  481. </compile>
  482. <run class="mypackage.Code2">
  483. <stdout>
  484. <line text="caught it: execution(void mypackage.Code2.n2())"/>
  485. <line text="done"/>
  486. </stdout>
  487. </run>
  488. </ajc-test>
  489. <!--
  490. <ajc-test dir="bugs1611/pr336136" title="itit">
  491. <compile files="Country_Roo_Op4j.java">
  492. <message kind="error" text="The import com.foo cannot be resolved" line="1"/>
  493. <message kind="error" text="The import org.javaruntype cannot be resolved" line="3"/>
  494. <message kind="error" text="The import org.op4j cannot be resolved" line="4"/>
  495. <message kind="error" text="The import org.op4j cannot be resolved" line="5"/>
  496. <message kind="error" text="Country cannot be resolved to a type" line="9"/>
  497. <message kind="error" text="Function cannot be resolved to a type" line="11"/>
  498. <message kind="error" text="can't determine modifiers of missing type Country_Roo_Op4j$Keys"/>
  499. </compile>"
  500. </ajc-test>
  501. -->
  502. </suite>