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.

ajc153.xml 8.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <!-- AspectJ v1.5.3 Tests -->
  3. <suite>
  4. <ajc-test dir="bugs153/pr148381" title="argNames and javac">
  5. <!--compile files="C.java" options="-1.5"/>
  6. <compile files="A.java" options="-1.5"/-->
  7. <compile files="Main.java,Monitor.java" options="-1.5" outjar="foo.jar" classpath="code.jar"/>
  8. <run class="test.Main" classpath="$sandbox/code.jar" ltw="aop.xml">
  9. <stderr>
  10. <line text="goo"/>
  11. </stderr>
  12. </run>
  13. </ajc-test>
  14. <ajc-test dir="bugs153/pr148737" title="illegalstateexception for non generic type">
  15. <compile files="A.java" options="-source 5 -target 5">
  16. <message kind="warning" line="18" text="advice defined in TestAspect has not been applied"/>
  17. </compile>
  18. </ajc-test>
  19. <ajc-test dir="bugs153/pr149096" title="cflow xml concrete aspect">
  20. <compile files="SimpleTracing.aj" outjar="out.jar"/>
  21. <compile files="TestMain.aj"/>
  22. <run class="TestMain" ltw="aop-pr149096.xml"/>
  23. </ajc-test>
  24. <ajc-test dir="bugs153/pr149305/case1" title="ataj inheritance - 1">
  25. <compile files="AbstractOzonator.java,IdentityOzonator.java,User.java" options="-1.5"/>
  26. </ajc-test>
  27. <ajc-test dir="bugs153/pr149305/case2" title="ataj inheritance - 2">
  28. <compile files="com/codesrc/ozonator/identity/IdentityOzonator.java,com/codesrc/ozonator/identity/User.java,com/codesrc/ozonator/AbstractOzonator.java" options="-1.5"/>
  29. </ajc-test>
  30. <ajc-test dir="bugs153/pr149305/case2" title="ataj inheritance - 3">
  31. <compile files="com/codesrc/ozonator/AbstractOzonator.java,com/codesrc/ozonator/identity/IdentityOzonator.java,com/codesrc/ozonator/identity/User.java" options="-1.5"/>
  32. </ajc-test>
  33. <ajc-test dir="bugs153/pr148693" title="verification problem">
  34. <compile files="MyAspect.java" options="-1.5 -XterminateAfterCompilation=true"/>
  35. </ajc-test>
  36. <ajc-test dir="bugs153/pr148537" title="incorrect annotation value">
  37. <compile files="MyClass.java" options="-1.5">
  38. <message kind="error" line="5" text="Type mismatch: cannot convert from RetentionPolicy[] to RetentionPolicy"/>
  39. </compile>
  40. </ajc-test>
  41. <ajc-test dir="bugs153/pr145693" title="verifyErrNoTypeCflowField">
  42. <compile files="Event.java" outjar="cpath.jar"/>
  43. <compile files="Monitor.aj" outjar="apath.jar" classpath="cpath.jar"/>
  44. <compile files="Sample.java" options="-Xlint:ignore" aspectpath="apath.jar" outjar="run.jar">
  45. <message kind="warning" line="8" text="Unable to determine match at this join point because the type 'Event' cannot be found"/>
  46. </compile>
  47. <run class="Sample" classpath="run.jar,apath.jar">
  48. <stderr>
  49. <line text="method running"/>
  50. </stderr>
  51. </run>
  52. </ajc-test>
  53. <ajc-test dir="bugs153/pr145693" title="verifyErrInpathNoTypeCflowField">
  54. <compile files="Event.java" outjar="cpath.jar"/>
  55. <compile files="Monitor.aj" outjar="apath.jar" classpath="cpath.jar"/>
  56. <compile files="Sample.java" options="-Xlint:ignore" inpath="cpath.jar" aspectpath="apath.jar" outjar="run.jar"/>
  57. <run class="Sample" classpath="run.jar,apath.jar"/>
  58. </ajc-test>
  59. <ajc-test dir="bugs153/pr145693" title="cpathNoTypeCflowField">
  60. <compile files="Event.java" outjar="cpath.jar"/>
  61. <compile files="Monitor.aj" outjar="apath.jar" classpath="cpath.jar"/>
  62. <compile files="Sample.java" options="-Xlint:ignore" classpath="cpath.jar" aspectpath="apath.jar" outjar="run.jar"/>
  63. <run class="Sample" classpath="run.jar,apath.jar"/>
  64. </ajc-test>
  65. <ajc-test dir="bugs153/pr148409" title="generic signature problem">
  66. <compile files="Blurgh.java" options="-1.5"/>
  67. <compile files="X.java" options="-1.5 -Xlint:ignore"/>
  68. <run class="Blurgh" options="-1.5" ltw="aop.xml"/>
  69. </ajc-test>
  70. <ajc-test dir="bugs153/pr149071" title="visibility problem">
  71. <compile files="AspectItd.java"/>
  72. </ajc-test>
  73. <ajc-test dir="bugs153/pr147841" title="advice not woven on aspectpath">
  74. <compile files="A.java" options="-Xlint:ignore" outjar="apath.jar"/>
  75. <!--compile files="C.java" outjar="cpa.jar" classpath="cpath.jar"/-->
  76. <compile files="C.java" options="-showWeaveInfo" aspectpath="apath.jar">
  77. <message kind="weave" text="foo"/>
  78. </compile>
  79. <run class="C">
  80. <stderr>
  81. <line text="foo"/>
  82. </stderr>
  83. </run>
  84. </ajc-test>
  85. <ajc-test dir="bugs153/pr145018" title="ataj crashing with cflow, if and args">
  86. <compile files="Broken.aj" options="-1.5"/>
  87. <run class="Broken">
  88. <stderr>
  89. <line text="ahhh"/>
  90. </stderr>
  91. </run>
  92. </ajc-test>
  93. <ajc-test dir="bugs153/pr150095" title="generics, inheritance and decp">
  94. <compile files="Foo.java" options="-1.5"/>
  95. </ajc-test>
  96. <ajc-test dir="bugs153/pr149322" title="can't find type on interface call 1">
  97. <compile files="Interface.java"/>
  98. <compile
  99. files="Missing.java"
  100. outjar="missing.jar"
  101. />
  102. <compile files="TestWithMissing.java" classpath="missing.jar"/>
  103. <compile files="Aspect1.aj" options="-showWeaveInfo -inpath ." classpath="missing.jar">
  104. <message kind="weave" text="void Interface.interfaceMethod()"/>
  105. <message kind="weave" text="void Missing.interfaceMethod()"/>
  106. </compile>
  107. <compile files="Aspect1.aj" options="-Xlint:warning -showWeaveInfo -inpath .">
  108. <message kind="weave" text="void Interface.interfaceMethod()"/>
  109. <message kind="warning" text="can't determine superclass of missing type Missing"/>
  110. </compile>
  111. <run class="TestWithMissing">
  112. <stdout>
  113. <line text="Aspect1.before() interfaceMethod"/>
  114. <line text="Missing.interfaceMethod()"/>
  115. <!--
  116. <line text="Aspect1.before() interfaceMethod"/>
  117. -->
  118. <line text="Missing.interfaceMethod()"/>
  119. <line text="Missing.missingMethod()"/>
  120. </stdout>
  121. </run>
  122. </ajc-test>
  123. <ajc-test dir="bugs153/pr149322" title="can't find type on interface call 2">
  124. <compile files="Interface.java"/>
  125. <compile
  126. files="Missing.java"
  127. outjar="missing.jar"
  128. />
  129. <compile files="TestWithMissing.java" classpath="missing.jar"/>
  130. <compile files="Aspect2.aj" options="-showWeaveInfo -inpath ." classpath="missing.jar">
  131. <message kind="weave" text="void Interface.interfaceMethod()"/>
  132. <message kind="weave" text="void Missing.interfaceMethod()"/>
  133. </compile>
  134. <compile files="Aspect2.aj" options="-Xlint:warning -showWeaveInfo -inpath .">
  135. <message kind="weave" text="void Interface.interfaceMethod()"/>
  136. <message kind="warning" text="can't determine whether missing type Missing is an instance of Interface"/>
  137. <message kind="warning" text="can't determine superclass of missing type Missing"/>
  138. </compile>
  139. <run class="TestWithMissing">
  140. <stdout>
  141. <line text="Aspect2.before() interfaceMethod"/>
  142. <line text="Missing.interfaceMethod()"/>
  143. <!--
  144. <line text="Aspect2.before() interfaceMethod"/>
  145. -->
  146. <line text="Missing.interfaceMethod()"/>
  147. <line text="Missing.missingMethod()"/>
  148. </stdout>
  149. </run>
  150. </ajc-test>
  151. <ajc-test dir="bugs153/pr149322" title="can't find type on interface call 3">
  152. <compile files="Interface.java"/>
  153. <compile
  154. files="Missing.java"
  155. outjar="missing.jar"
  156. />
  157. <compile files="TestWithMissing.java" classpath="missing.jar"/>
  158. <compile files="Aspect3.aj" options="-showWeaveInfo -inpath ." classpath="missing.jar">
  159. <message kind="weave" text="void Interface.interfaceMethod()"/>
  160. <message kind="weave" text="void Missing.interfaceMethod()"/>
  161. </compile>
  162. <compile files="Aspect3.aj" options="-Xlint:warning -showWeaveInfo -inpath .">
  163. <message kind="weave" text="void Interface.interfaceMethod()"/>
  164. <message kind="warning" text="can't determine whether missing type Missing is an instance of Interface"/>
  165. <message kind="warning" text="can't determine superclass of missing type Missing"/>
  166. </compile>
  167. <run class="TestWithMissing">
  168. <stdout>
  169. <line text="Aspect3.before() interfaceMethod"/>
  170. <line text="Missing.interfaceMethod()"/>
  171. <!--
  172. <line text="Aspect3.before() interfaceMethod"/>
  173. -->
  174. <line text="Missing.interfaceMethod()"/>
  175. <line text="Missing.missingMethod()"/>
  176. </stdout>
  177. </run>
  178. </ajc-test>
  179. </suite>