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.

ajc193.xml 28KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs193/333274" vm="1.8" title="nested around proceed">
  4. <compile files="ma/aspect2/Aspect2.java,ma/aspect2/Annotation2.java,ma/aspect3/Aspect3.java,ma/aspect3/Annotation3.java,ma/Precedence.java,ma/Main.java,ma/aspect1/Aspect1.java,ma/aspect1/Annotation1.java" options="-showWeaveInfo -1.8 -XnoInline">
  5. <message kind="weave" text="Join point 'method-execution(int ma.Main$Dummy.retryTranslateAndTimeLimited())' in Type 'ma.Main$Dummy' (Main.java:16) advised by around advice from 'ma.aspect3.Aspect3' (Aspect3.java:11)"/>
  6. <message kind="weave" text="Join point 'method-execution(int ma.Main$Dummy.retryTranslateAndTimeLimited())' in Type 'ma.Main$Dummy' (Main.java:16) advised by around advice from 'ma.aspect2.Aspect2' (Aspect2.java:11)"/>
  7. <message kind="weave" text="Join point 'method-execution(int ma.Main$Dummy.retryTranslateAndTimeLimited())' in Type 'ma.Main$Dummy' (Main.java:16) advised by around advice from 'ma.aspect1.Aspect1' (Aspect1.java:12)"/>
  8. </compile>
  9. <!--
  10. >In Aspect1
  11. >In Aspect2
  12. >In Aspect3
  13. Method call
  14. <In Aspect3
  15. <In Aspect2
  16. =In Aspect1
  17. Method call
  18. <In Aspect1
  19. -->
  20. <run class="ma.Main">
  21. <stdout>
  22. <line text="&gt;In Aspect1"/>
  23. <line text="&gt;In Aspect2"/>
  24. <line text="&gt;In Aspect3"/>
  25. <line text="Method call"/>
  26. <line text="&lt;In Aspect3"/>
  27. <line text="&lt;In Aspect2"/>
  28. <line text="=In Aspect1"/>
  29. <line text="&gt;In Aspect2"/>
  30. <line text="&gt;In Aspect3"/>
  31. <line text="Method call"/>
  32. <line text="&lt;In Aspect3"/>
  33. <line text="&lt;In Aspect2"/>
  34. <line text="&lt;In Aspect1"/>
  35. </stdout>
  36. </run>
  37. </ajc-test>
  38. <ajc-test dir="bugs193/543657" vm="1.8" title="overweaving decm - control">
  39. <compile files="MoodIndicator.java,Code1.java" options="-showWeaveInfo -1.8">
  40. <message kind="weave" text="Mixing interface 'MoodIndicator$Moody' (MoodIndicator.java) into type 'Code1' (Code1.java)"/>
  41. <message kind="weave" text="Type 'Code1' (Code1.java) has intertyped method from 'MoodIndicator' (MoodIndicator.java:'Mood MoodIndicator$Moody.getMood()')"/>
  42. <message kind="weave" text="Join point 'method-execution(void Code1.run())' in Type 'Code1' (Code1.java:2) advised by before advice from 'MoodIndicator' (MoodIndicator.java:21)"/>
  43. </compile>
  44. <run class="Code1">
  45. <stdout>
  46. <line text="I'm feeling HAPPY"/>
  47. </stdout>
  48. </run>
  49. </ajc-test>
  50. <ajc-test dir="bugs193/543657" vm="1.8" title="overweaving decm - reweaving">
  51. <compile files="MoodIndicator.java,Code1.java" options="-showWeaveInfo -1.8" outjar="one.jar">
  52. <message kind="weave" text="Mixing interface 'MoodIndicator$Moody' (MoodIndicator.java) into type 'Code1' (Code1.java)"/>
  53. <message kind="weave" text="Type 'Code1' (Code1.java) has intertyped method from 'MoodIndicator' (MoodIndicator.java:'Mood MoodIndicator$Moody.getMood()')"/>
  54. <message kind="weave" text="Join point 'method-execution(void Code1.run())' in Type 'Code1' (Code1.java:2) advised by before advice from 'MoodIndicator' (MoodIndicator.java:21)"/>
  55. </compile>
  56. <compile inpath="one.jar" options="-showWeaveInfo -1.8">
  57. <message kind="weave" text="Mixing interface 'MoodIndicator$Moody' (MoodIndicator.java) into type 'Code1' (Code1.java)"/>
  58. <message kind="weave" text="Type 'Code1' (Code1.java) has intertyped method from 'MoodIndicator' (MoodIndicator.java:'Mood MoodIndicator$Moody.getMood()')"/>
  59. <message kind="weave" text="Join point 'method-execution(void Code1.run())' in Type 'Code1' (Code1.java:2) advised by before advice from 'MoodIndicator' (one.jar!MoodIndicator.class(from MoodIndicator.java))"/>
  60. </compile>
  61. <run class="Code1">
  62. <stdout>
  63. <line text="I'm feeling HAPPY"/>
  64. </stdout>
  65. </run>
  66. </ajc-test>
  67. <ajc-test dir="bugs193/543657" vm="1.8" title="overweaving decm - 1">
  68. <compile files="MoodIndicator.java,Code1.java" options="-showWeaveInfo -1.8" outjar="one.jar">
  69. <message kind="weave" text="Mixing interface 'MoodIndicator$Moody' (MoodIndicator.java) into type 'Code1' (Code1.java)"/>
  70. <message kind="weave" text="Type 'Code1' (Code1.java) has intertyped method from 'MoodIndicator' (MoodIndicator.java:'Mood MoodIndicator$Moody.getMood()')"/>
  71. <message kind="weave" text="Join point 'method-execution(void Code1.run())' in Type 'Code1' (Code1.java:2) advised by before advice from 'MoodIndicator' (MoodIndicator.java:21)"/>
  72. </compile>
  73. <compile files="MoodIndicator2.java" inpath="one.jar" options="-showWeaveInfo -1.8 -Xset:overWeaving=true">
  74. <message kind="warning" text="advice defined in MoodIndicator has not been applied [Xlint:adviceDidNotMatch]"/>
  75. <message kind="weave" text="Mixing interface 'MoodIndicator2$Moody2' (MoodIndicator2.java) into type 'Code1' (Code1.java)"/>
  76. <message kind="weave" text="Type 'Code1' (Code1.java) has intertyped method from 'MoodIndicator2' (MoodIndicator2.java:'Mood MoodIndicator2$Moody2.getMood2()')"/>
  77. <message kind="weave" text="Join point 'method-execution(void Code1.run())' in Type 'Code1' (Code1.java:2) advised by before advice from 'MoodIndicator2' (MoodIndicator2.java:20)"/>
  78. </compile>
  79. <run class="Code1">
  80. <stdout>
  81. <line text="I'm feeling SAD"/>
  82. <line text="I'm feeling HAPPY"/>
  83. </stdout>
  84. </run>
  85. </ajc-test>
  86. <ajc-test dir="bugs193/543657" vm="1.8" title="overweaving decm - 2">
  87. <compile files="MoodIndicator.java,Code1.java" options="-showWeaveInfo -1.8" outjar="one.jar">
  88. <message kind="weave" text="Mixing interface 'MoodIndicator$Moody' (MoodIndicator.java) into type 'Code1' (Code1.java)"/>
  89. <message kind="weave" text="Type 'Code1' (Code1.java) has intertyped method from 'MoodIndicator' (MoodIndicator.java:'Mood MoodIndicator$Moody.getMood()')"/>
  90. <message kind="weave" text="Join point 'method-execution(void Code1.run())' in Type 'Code1' (Code1.java:2) advised by before advice from 'MoodIndicator' (MoodIndicator.java:21)"/>
  91. </compile>
  92. <compile files="MoodIndicator3.java" inpath="one.jar" options="-showWeaveInfo -1.8 -Xset:overWeaving=true">
  93. <message kind="warning" text="advice defined in MoodIndicator has not been applied [Xlint:adviceDidNotMatch]"/>
  94. <message kind="weave" text="Mixing interface 'MoodIndicator2$Moody2' (MoodIndicator2.java) into type 'Code1' (Code1.java)"/>
  95. <message kind="weave" text="Type 'Code1' (Code1.java) has intertyped method from 'MoodIndicator2' (MoodIndicator2.java:'Mood MoodIndicator2$Moody2.getMood2()')"/>
  96. <message kind="weave" text="Join point 'method-execution(void Code1.run())' in Type 'Code1' (Code1.java:2) advised by before advice from 'MoodIndicator2' (MoodIndicator2.java:20)"/>
  97. </compile>
  98. <run class="Code1">
  99. <stdout>
  100. <line text="I'm feeling SAD"/>
  101. <line text="I'm feeling HAPPY"/>
  102. </stdout>
  103. </run>
  104. </ajc-test>
  105. <ajc-test dir="bugs193/543657" vm="1.8" title="mood indicator 4">
  106. <compile files="MoodIndicator4.java" options="-1.8" outjar="one.jar">
  107. </compile>
  108. <compile inpath="one.jar" options="-1.8 -Xset:overWeaving=true">
  109. </compile>
  110. <run class="Code1">
  111. <stdout>
  112. <line text="I'm feeling SAD"/>
  113. <line text="I'm feeling HAPPY"/>
  114. </stdout>
  115. </run>
  116. </ajc-test>
  117. <ajc-test dir="bugs193/543657" vm="1.8" title="overweaving atdecp - control">
  118. <compile files="Basic3b.java" options="-showWeaveInfo -1.8" outjar="ow1.jar">
  119. <message kind="weave" text="Extending interface set for type 'Basic3b' (Basic3b.java) to include 'X$I' (Basic3b.java)"/>
  120. <message kind="weave" text="Type 'Basic3b' (Basic3b.java) has intertyped method from 'X' (Basic3b.java:'void X$I.m2()')"/>
  121. <message kind="weave" text="Type 'Basic3b' (Basic3b.java) has intertyped method from 'X' (Basic3b.java:'void X$I.m3()')"/>
  122. <message kind="weave" text="Type 'Basic3b' (Basic3b.java) has intertyped method from 'X' (Basic3b.java:'void X$I.m4()')"/>
  123. <message kind="weave" text="Join point 'method-call(void X$I.m2())' in Type 'Basic3b' (Basic3b.java:7) advised by before advice from 'X' (Basic3b.java:33)"/>
  124. <message kind="weave" text="Join point 'method-call(void X$I.m3())' in Type 'Basic3b' (Basic3b.java:8) advised by before advice from 'X' (Basic3b.java:33)"/>
  125. <message kind="weave" text="Join point 'method-call(void X$I.m2())' in Type 'Basic3b' (Basic3b.java:9) advised by before advice from 'X' (Basic3b.java:33)"/>
  126. <message kind="weave" text="Join point 'method-call(void X$I.m4())' in Type 'Basic3b' (Basic3b.java:10) advised by before advice from 'X' (Basic3b.java:33)"/>
  127. <message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'X$IIimpl' (Basic3b.java:23) advised by before advice from 'X' (Basic3b.java:33)"/>
  128. <message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'Basic3b' (Basic3b.java:11) advised by before advice from 'X' (Basic3b.java:33)"/>
  129. </compile>
  130. <compile files="Y.java" inpath="ow1.jar" options=" -1.8">
  131. </compile>
  132. <run class="Basic3b">
  133. <stdout>
  134. <!-- BUG: There should be one of each X.IImpl and Y.IImpl, just like for @decm. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=543657#c5. -->
  135. <line text="Y.IImpl.m2() ran"/>
  136. <line text="Y.IImpl.m2() ran"/>
  137. <line text="Basic3b.main ran"/>
  138. </stdout>
  139. </run>
  140. </ajc-test>
  141. <ajc-test dir="bugs193/543657" vm="1.8" title="overweaving atdecp">
  142. <compile files="Basic3b.java" options="-showWeaveInfo -1.8" outjar="ow1.jar">
  143. <message kind="weave" text="Extending interface set for type 'Basic3b' (Basic3b.java) to include 'X$I' (Basic3b.java)"/>
  144. <message kind="weave" text="Type 'Basic3b' (Basic3b.java) has intertyped method from 'X' (Basic3b.java:'void X$I.m2()')"/>
  145. <message kind="weave" text="Type 'Basic3b' (Basic3b.java) has intertyped method from 'X' (Basic3b.java:'void X$I.m3()')"/>
  146. <message kind="weave" text="Type 'Basic3b' (Basic3b.java) has intertyped method from 'X' (Basic3b.java:'void X$I.m4()')"/>
  147. <message kind="weave" text="Join point 'method-call(void X$I.m2())' in Type 'Basic3b' (Basic3b.java:7) advised by before advice from 'X' (Basic3b.java:33)"/>
  148. <message kind="weave" text="Join point 'method-call(void X$I.m3())' in Type 'Basic3b' (Basic3b.java:8) advised by before advice from 'X' (Basic3b.java:33)"/>
  149. <message kind="weave" text="Join point 'method-call(void X$I.m2())' in Type 'Basic3b' (Basic3b.java:9) advised by before advice from 'X' (Basic3b.java:33)"/>
  150. <message kind="weave" text="Join point 'method-call(void X$I.m4())' in Type 'Basic3b' (Basic3b.java:10) advised by before advice from 'X' (Basic3b.java:33)"/>
  151. <message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'X$IIimpl' (Basic3b.java:23) advised by before advice from 'X' (Basic3b.java:33)"/>
  152. <message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'Basic3b' (Basic3b.java:11) advised by before advice from 'X' (Basic3b.java:33)"/>
  153. </compile>
  154. <compile files="Y.java" inpath="ow1.jar" options="-showWeaveInfo -1.8 -Xset:overWeaving=true">
  155. <message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'Y$IIimpl' (Y.java:10) advised by before advice from 'Y' (Y.java:17)"/>
  156. <message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'Y$IIimpl' (Y.java:10) advised by before advice from 'X' (ow1.jar!X.class(from Basic3b.java))"/>
  157. <message kind="weave" text="Join point 'method-call(void X.advice1())' in Type 'X$IIimpl' (Basic3b.java:23) advised by before advice from 'Y' (Y.java:17)"/>
  158. <message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'X$IIimpl' (Basic3b.java:23) advised by before advice from 'Y' (Y.java:17)"/>
  159. <message kind="weave" text="Extending interface set for type 'Basic3b' (Basic3b.java) to include 'Y$I' (Y.java)"/>
  160. <message kind="weave" text="Join point 'method-call(void X.advice1())' in Type 'Basic3b' (Basic3b.java:7) advised by before advice from 'Y' (Y.java:17)"/>
  161. <message kind="weave" text="Join point 'method-call(void X$I.m2())' in Type 'Basic3b' (Basic3b.java:7) advised by before advice from 'Y' (Y.java:17)"/>
  162. <message kind="weave" text="Join point 'method-call(void X.advice1())' in Type 'Basic3b' (Basic3b.java:8) advised by before advice from 'Y' (Y.java:17)"/>
  163. <message kind="weave" text="Join point 'method-call(void X$I.m3())' in Type 'Basic3b' (Basic3b.java:8) advised by before advice from 'Y' (Y.java:17)"/>
  164. <message kind="weave" text="Join point 'method-call(void X.advice1())' in Type 'Basic3b' (Basic3b.java:9) advised by before advice from 'Y' (Y.java:17)"/>
  165. <message kind="weave" text="Join point 'method-call(void X$I.m2())' in Type 'Basic3b' (Basic3b.java:9) advised by before advice from 'Y' (Y.java:17)"/>
  166. <message kind="weave" text="Join point 'method-call(void X.advice1())' in Type 'Basic3b' (Basic3b.java:10) advised by before advice from 'Y' (Y.java:17)"/>
  167. <message kind="weave" text="Join point 'method-call(void X$I.m4())' in Type 'Basic3b' (Basic3b.java:10) advised by before advice from 'Y' (Y.java:17)"/>
  168. <message kind="weave" text="Join point 'method-call(void X.advice1())' in Type 'Basic3b' (Basic3b.java:11) advised by before advice from 'Y' (Y.java:17)"/>
  169. <message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'Basic3b' (Basic3b.java:11) advised by before advice from 'Y' (Y.java:17)"/>
  170. <message kind="weave" text="Join point 'method-call(void X$I.m2())' in Type 'Basic3b' (Basic3b.java:1) advised by before advice from 'Y' (Y.java:17)"/>
  171. <message kind="weave" text="Join point 'method-call(void X$I.m3())' in Type 'Basic3b' (Basic3b.java:1) advised by before advice from 'Y' (Y.java:17)"/>
  172. <message kind="weave" text="Join point 'method-call(void X$I.m4())' in Type 'Basic3b' (Basic3b.java:1) advised by before advice from 'Y' (Y.java:17)"/>
  173. </compile>
  174. <run class="Basic3b">
  175. <stdout>
  176. <!-- BUG: There should be one of each X.IImpl and Y.IImpl, just like for @decm. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=543657#c5. -->
  177. <line text="X.IImpl.m2() ran"/>
  178. <line text="X.IImpl.m2() ran"/>
  179. <line text="Basic3b.main ran"/>
  180. </stdout>
  181. </run>
  182. </ajc-test>
  183. <ajc-test dir="bugs193/389678" vm="1.8" title="overweaving">
  184. <compile files="OverWeave_1/src/Application.java,OverWeave_1/src/MyAspect.aj" options="-showWeaveInfo -1.8" outjar="ow1.jar">
  185. <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
  186. <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
  187. </compile>
  188. <compile files="OverWeave_2/src/MyAspect2.aj" options="-1.8" outjar="ow2.jar">
  189. <message kind="warning" text="advice defined in MyAspect2 has not been applied"/>
  190. </compile>
  191. <compile inpath="ow1.jar" aspectpath="ow2.jar" options="-1.8 -showWeaveInfo">
  192. <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
  193. <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect' (ow1.jar!MyAspect.class:2(from MyAspect.aj))"/>
  194. <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
  195. <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect' (ow1.jar!MyAspect.class:2(from MyAspect.aj))"/>
  196. </compile>
  197. <run class="Application" classpath="ow2.jar">
  198. <stdout>
  199. <line text="MyAspect -> execution(void Application.main(String[]))"/>
  200. <line text="MyAspect2 -> execution(void Application.main(String[]))"/>
  201. <line text="MyAspect -> execution(void Application.sayHelloTo(String))"/>
  202. <line text="MyAspect2 -> execution(void Application.sayHelloTo(String))"/>
  203. <line text="Hello world!"/>
  204. </stdout>
  205. </run>
  206. </ajc-test>
  207. <ajc-test dir="bugs193/389678" vm="1.8" title="overweaving 2">
  208. <compile files="OverWeave_1/src/Application.java,OverWeave_1/src/MyAspect.aj" options="-showWeaveInfo -1.8" outjar="ow1.jar">
  209. <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
  210. <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
  211. </compile>
  212. <compile files="OverWeave_2/src/MyAspect2.aj" options="-1.8" outjar="ow2.jar">
  213. <message kind="warning" text="advice defined in MyAspect2 has not been applied"/>
  214. </compile>
  215. <compile inpath="ow1.jar" aspectpath="ow2.jar" options="-showWeaveInfo -1.8 -Xset:overWeaving=true">
  216. <!-- this is a bit unfortunate, basically MyAspect is not being re-applied because of overweaving
  217. so we get a message that it hasn't been applied. But really it doesn't need to be. -->
  218. <message kind="warning" text="advice defined in MyAspect has not been applied"/>
  219. <!-- These two don't come out because we are using overweaving to apply MyAspect2 where MyAspect is already applied.
  220. <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect' (ow1.jar!MyAspect.class:2(from MyAspect.aj))"/>
  221. <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect' (ow1.jar!MyAspect.class:2(from MyAspect.aj))"/>
  222. -->
  223. <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
  224. <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
  225. </compile>
  226. <run class="Application" classpath="ow2.jar">
  227. <stdout>
  228. <!-- notice order change to overweaving usage -->
  229. <line text="MyAspect2 -> execution(void Application.main(String[]))"/>
  230. <line text="MyAspect -> execution(void Application.main(String[]))"/>
  231. <line text="MyAspect2 -> execution(void Application.sayHelloTo(String))"/>
  232. <line text="MyAspect -> execution(void Application.sayHelloTo(String))"/>
  233. <line text="Hello world!"/>
  234. </stdout>
  235. </run>
  236. </ajc-test>
  237. <ajc-test dir="bugs193/389678" vm="1.8" title="overweaving 3">
  238. <compile files="OverWeave_1/src/Application.java,OverWeave_1/src/MyAspect.aj" options="-showWeaveInfo -1.8" outjar="ow1.jar">
  239. <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
  240. <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
  241. </compile>
  242. <compile files="OverWeave_2/src/MyAspect2.aj" options="-1.8" outjar="ow2.jar">
  243. <message kind="warning" text="advice defined in MyAspect2 has not been applied"/>
  244. </compile>
  245. <compile files="OverWeave_4/src/MyAspect3.aj" options="-1.8" outjar="ow4.jar">
  246. <message kind="warning" text="advice defined in MyAspect3 has not been applied"/>
  247. </compile>
  248. <compile inpath="ow1.jar" aspectpath="ow2.jar" options="-showWeaveInfo -1.8 -Xset:overWeaving=true" outjar="ow3.jar">
  249. <!-- this is a bit unfortunate, basically MyAspect is not being re-applied because of overweaving
  250. so we get a message that it hasn't been applied. But really it doesn't need to be. -->
  251. <message kind="warning" text="advice defined in MyAspect has not been applied"/>
  252. <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
  253. <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
  254. </compile>
  255. <compile inpath="ow3.jar" aspectpath="ow4.jar" options="-showWeaveInfo -1.8 -Xset:overWeaving=true">
  256. <!-- this is a bit unfortunate, basically MyAspect is not being re-applied because of overweaving
  257. so we get a message that it hasn't been applied. But really it doesn't need to be. -->
  258. <message kind="warning" text="advice defined in MyAspect has not been applied"/>
  259. <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect3' (ow4.jar!MyAspect3.class:2(from MyAspect3.aj))"/>
  260. <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect3' (ow4.jar!MyAspect3.class:2(from MyAspect3.aj))"/>
  261. </compile>
  262. <run class="Application" classpath="ow2.jar">
  263. <stdout>
  264. <line text="MyAspect3 -> execution(void Application.main(String[]))"/>
  265. <line text="MyAspect2 -> execution(void Application.main(String[]))"/>
  266. <line text="MyAspect -> execution(void Application.main(String[]))"/>
  267. <line text="MyAspect3 -> execution(void Application.sayHelloTo(String))"/>
  268. <line text="MyAspect2 -> execution(void Application.sayHelloTo(String))"/>
  269. <line text="MyAspect -> execution(void Application.sayHelloTo(String))"/>
  270. <line text="Hello world!"/>
  271. </stdout>
  272. </run>
  273. </ajc-test>
  274. <ajc-test dir="bugs193/389678" vm="1.8" title="overweaving 4">
  275. <compile files="OverWeave_1/src/Application.java,OverWeave_1/src/MyAspect.aj" options="-showWeaveInfo -1.8" outjar="ow1.jar">
  276. <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
  277. <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
  278. </compile>
  279. <compile files="OverWeave_2/src/MyAspect2.aj" options="-1.8" outjar="ow2.jar">
  280. <message kind="warning" text="advice defined in MyAspect2 has not been applied"/>
  281. </compile>
  282. <compile files="OverWeave_4/src/MyAspect3.aj" options="-1.8" outjar="ow4.jar">
  283. <message kind="warning" text="advice defined in MyAspect3 has not been applied"/>
  284. </compile>
  285. <compile inpath="ow1.jar" aspectpath="ow2.jar" options="-showWeaveInfo -1.8 -Xset:overWeaving=true" outjar="ow3.jar">
  286. <!-- this is a bit unfortunate, basically MyAspect is not being re-applied because of overweaving
  287. so we get a message that it hasn't been applied. But really it doesn't need to be. -->
  288. <message kind="warning" text="advice defined in MyAspect has not been applied"/>
  289. <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
  290. <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
  291. </compile>
  292. <compile inpath="ow3.jar" aspectpath="ow4.jar,ow2.jar" options="-1.8">
  293. <message kind="error" text="the type Application was previously subject to overweaving and after that can only be woven again in overweaving mode"/>
  294. <message kind="error" text="the type MyAspect was previously subject to overweaving and after that can only be woven again in overweaving mode"/>
  295. </compile>
  296. </ajc-test>
  297. <ajc-test dir="bugs193/542682" vm="1.5" title="wildcard enum match in itd">
  298. <compile files="SimpleEnum.java,SimpleEnum2.java,EnumAspect04.aj" options="-1.5">
  299. <message kind="warning" line="8" text="enum type SimpleEnum2 matches a declare parents type pattern but is being ignored"/>
  300. <message kind="warning" line="8" text="enum type SimpleEnum matches a declare parents type pattern but is being ignored"/>
  301. </compile>
  302. </ajc-test>
  303. <ajc-test dir="bugs193/542682" title="declare mixin a">
  304. <compile files="CaseA.java" options="-1.8">
  305. <message kind="warning" line="1" text="enum type Color matches a declare parents type pattern but is being ignored"/>
  306. </compile>
  307. <run class="CaseA">
  308. <stdout>
  309. <line text="Delegate factory invoked"/>
  310. <line text="methodOne running"/>
  311. </stdout>
  312. </run>
  313. </ajc-test>
  314. <ajc-test dir="bugs193/isAbstractType" title="is abstract">
  315. <compile files="Code.java" options="-1.8"/>
  316. <run class="Code">
  317. <stdout>
  318. <line text="execution(void Code.run())"/>
  319. </stdout>
  320. </run>
  321. </ajc-test>
  322. <ajc-test dir="bugs193/isAbstractType" title="is abstract - 2">
  323. <compile files="Code2.java" options="-1.8"/>
  324. <run class="Code2">
  325. <stdout>
  326. <line text="execution(void Helper.run())"/>
  327. </stdout>
  328. </run>
  329. </ajc-test>
  330. <!--
  331. <ajc-test dir="bugs191/var" title="var 3">
  332. <compile files="Code3.java" options="-10">
  333. </compile>
  334. <run class="Code3">
  335. <stdout>
  336. <line text="call(Class java.lang.Object.getClass())"/>
  337. <line text="class java.lang.String"/>
  338. </stdout>
  339. </run>
  340. </ajc-test>
  341. -->
  342. </suite>