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.

ajc172.xml 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs172/pr398588" title="optional aspects">
  4. <compile files="Anno.java Anno2.java" outjar="anno.jar" options="-1.5"/>
  5. <compile files="AspectA.java" classpath="anno.jar" outjar="aspect.jar" options="-Xlint:ignore -1.5"/>
  6. <compile files="AspectB.java" outjar="aspect2.jar" options="-Xlint:ignore -1.5"/>
  7. <compile files="Code.java Blah.java" classpath="code.jar;aspect.jar;aspect2.jar" options="-1.5"/>
  8. <compile files="AspectC.java" classpath="$sandbox" outjar="aspect3.jar" options="-Xlint:ignore -1.5"/>
  9. <compile files="AspectD.java" classpath="anno.jar" outjar="aspect4.jar" options="-Xlint:ignore -1.5"/>
  10. <file deletefile="anno.jar"/>
  11. <run class="Code" ltw="META-INF/aop.xml" classpath=".;aspect.jar;aspect2.jar;aspectj3.jar;aspect4.jar">
  12. <stderr>
  13. <line text="AspectJ Weaver Version"/>
  14. <line text="register classloader"/>
  15. <line text="using configuration"/>
  16. <line text="register aspect AspectA"/>
  17. <line text="deactivating aspect"/>
  18. <line text="register aspect AspectB"/>
  19. <line text="register aspect AspectC"/>
  20. <line text="register aspect AspectD"/>
  21. <line text="deactivating aspect 'AspectD' as it requires type 'a.b.c.Anno2' which cannot be found on the classpath"/>
  22. <line text="Join point 'method-execution(void Code.main(java.lang.String[]))' in Type 'Code' (Code.java:7) advised by before advice from 'AspectC'"/>
  23. <line text="Join point 'staticinitialization(void Code.&lt;clinit&gt;())' in Type 'Code' (Code.java) advised by before advice from 'AspectB'"/>
  24. <line text="processing reweavable"/>
  25. <line text="processing reweavable"/>
  26. </stderr>
  27. <stdout>
  28. <line text="staticinitialization"/>
  29. <line text="C"/>
  30. <line text="abcde"/>
  31. </stdout>
  32. </run>
  33. </ajc-test>
  34. <ajc-test dir="bugs172/pr398246" title="if pointcut names">
  35. <compile files="Code.java" options="-1.5">
  36. </compile>
  37. <run class="Code" options="-1.5">
  38. <stdout>
  39. <line text="advice"/>
  40. <line text="advice"/>
  41. </stdout>
  42. </run>
  43. </ajc-test>
  44. <ajc-test dir="bugs172/pr398246" title="if pointcut names 2">
  45. <compile files="Code2.java" options="-1.5">
  46. </compile>
  47. <run class="Code2" options="-1.5">
  48. <stdout>
  49. <line text="advice"/>
  50. <line text="advice"/>
  51. </stdout>
  52. </run>
  53. </ajc-test>
  54. <ajc-test dir="bugs172/pr398246" title="if pointcut names 3">
  55. <compile files="Code3.java" options="-1.5">
  56. </compile>
  57. <run class="Code3" options="-1.5">
  58. <stdout>
  59. <line text="advice"/>
  60. <line text="advice"/>
  61. </stdout>
  62. </run>
  63. </ajc-test>
  64. <ajc-test dir="bugs172/pr398246" title="if pointcut names 4">
  65. <compile files="Code4.java" options="-1.5"></compile>
  66. <compile files="Code4.java" options="-1.5" outjar="aspects.jar"/>
  67. <run class="Code4" options="-1.5">
  68. <stdout>
  69. <line text="advice"/>
  70. <line text="advice"/>
  71. </stdout>
  72. </run>
  73. <compile files="CodeExtra4.java" aspectpath="aspects.jar" options="-1.5"></compile>
  74. <run class="CodeExtra4" options="-1.5">
  75. <stdout>
  76. <line text="advice"/>
  77. <line text="advice"/>
  78. </stdout>
  79. </run>
  80. </ajc-test>
  81. <ajc-test dir="bugs172/pr398246" title="if pointcut names 5">
  82. <compile files="Code5.java Code5a.java" options="-1.5">
  83. </compile>
  84. <run class="Code5" options="-1.5">
  85. <stdout>
  86. <line text="advice"/>
  87. <line text="advice"/>
  88. <line text="advice"/>
  89. <line text="advice"/>
  90. </stdout>
  91. </run>
  92. </ajc-test>
  93. <ajc-test dir="bugs172/pr398246" title="if pointcut names 6">
  94. <compile files="Code6.java" options="-1.5">
  95. </compile>
  96. <run class="Code6" options="-1.5">
  97. <stdout>
  98. <line text="advice"/>
  99. <line text="advice"/>
  100. </stdout>
  101. </run>
  102. </ajc-test>
  103. <ajc-test dir="bugs172/pr398246" title="if pointcut names 7">
  104. <compile files="Code7.java" options="-1.5">
  105. </compile>
  106. <run class="Code7" options="-1.5">
  107. <stdout>
  108. <line text="advice"/>
  109. <line text="advice"/>
  110. </stdout>
  111. </run>
  112. </ajc-test>
  113. <ajc-test dir="bugs172/pr389750" title="inconsistent class file">
  114. <compile files="Code.aj" options="-1.5">
  115. </compile>
  116. <compile files="Clazz.java" options="-1.5"/>
  117. </ajc-test>
  118. <ajc-test dir="bugs172/pr389750" title="inconsistent class file 2">
  119. <compile files="Code2.aj" outjar="azpect.jar" options="-1.5">
  120. </compile>
  121. <compile files="Clazz2.java" aspectpath="azpect.jar" options="-1.5"/>
  122. </ajc-test>
  123. <ajc-test dir="bugs172/pr389750" title="inconsistent class file 3">
  124. <compile files="Code3.aj" outjar="azpect.jar" options="-1.5">
  125. </compile>
  126. <compile files="Clazz3.java" aspectpath="azpect.jar" options="-1.5"/>
  127. </ajc-test>
  128. <ajc-test dir="bugs172/pr389750" title="inconsistent class file 4">
  129. <compile files="Code4.aj" outjar="azpect.jar" options="-1.5">
  130. </compile>
  131. <compile files="Clazz4.java" aspectpath="azpect.jar" options="-1.5"/>
  132. </ajc-test>
  133. <ajc-test dir="bugs172/pr389752" title="annotation value error 1">
  134. <compile files="Code.java" options="-1.5">
  135. <message kind="error" text="Invalid annotation value 'AA', expected enum value"/>
  136. </compile>
  137. </ajc-test>
  138. <ajc-test dir="bugs172/pr389752" title="annotation value error 2">
  139. <compile files="Code2.java" options="-1.5">
  140. <message kind="error" text="Invalid annotation value 'AA', expected enum value"/>
  141. </compile>
  142. </ajc-test>
  143. <ajc-test dir="bugs172/pr389752" title="annotation value error 3">
  144. <compile files="Code3.java" options="-1.5">
  145. <message kind="error" text="Invalid annotation value 'AA', expected enum value"/>
  146. </compile>
  147. </ajc-test>
  148. </suite>