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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <!-- AspectJ v1.6.0 Tests -->
  3. <suite>
  4. <ajc-test dir="bugs160/pr226567" title="pipeline compilation and generic return type">
  5. <compile files="BarAspect.aj Foo.java Bar.java" options="-1.5"/>
  6. <compile files="BarAspect.aj Bar.java Foo.java" options="-1.5"/>
  7. </ajc-test>
  8. <ajc-test dir="bugs160/pr225916" title="pipeline compilation and anonymous type">
  9. <compile files="Test.java TestMBean.java TestAspect.java" options="-showWeaveInfo">
  10. <message kind="weave" text="Join point 'method-execution(java.lang.String test.jmx.Test.test())' in Type"/>
  11. </compile>
  12. </ajc-test>
  13. <ajc-test dir="bugs160/pr214994" title="generic itd">
  14. <compile files="Broke.java" options="-1.5"/>
  15. </ajc-test>
  16. <ajc-test dir="bugs160/pr223605" title="generic decp ltw">
  17. <compile files="GenericConfigurableBugTest.java" options="-1.5"><!-- -showWeaveInfo"-->
  18. </compile>
  19. <run class="test.GenericConfigurableBugTest"/>
  20. </ajc-test>
  21. <ajc-test dir="bugs160/pr173602" title="duplicate itd npe">
  22. <compile files="X.java">
  23. <message kind="error" line="2" text="intertype declaration from "/>
  24. <message kind="error" line="3" text="intertype declaration from "/>
  25. <message kind="error" line="6" text="intertype declaration from "/>
  26. </compile>
  27. </ajc-test>
  28. <ajc-test dir="bugs160/pr223094" title="ltw inherited itds">
  29. <compile files="B.java" outjar="foo.jar"/>
  30. <compile files="A.java" classpath="$sandbox/foo.jar"/>
  31. <run class="p.A" classpath="$sandbox/foo.jar" ltw="aop.xml">
  32. <stdout>
  33. <line text="ok"/>
  34. </stdout>
  35. </run>
  36. </ajc-test>
  37. <ajc-test dir="bugs160/pr167197" title="generic type parameterized with array type">
  38. <compile options="-1.5" files="AspectBreaker.java"/>
  39. </ajc-test>
  40. <ajc-test dir="bugs160/pr167197" title="generic type parameterized with array type - 2">
  41. <compile options="-1.5" files="Breaker2.java"/>
  42. <run class="Breaker2"/>
  43. </ajc-test>
  44. <ajc-test dir="bugs160/pr180264" title="classcastexception on array type">
  45. <compile options="-warn:+uselessTypeCheck" files="Foo.java,Main.java"/>
  46. </ajc-test>
  47. <ajc-test dir="bugs160/pr145018" title="ataj crashing with cflow, if and args">
  48. <compile files="Broken.aj" options="-1.5"/>
  49. <run class="Broken">
  50. </run>
  51. </ajc-test>
  52. <ajc-test dir="bugs160/pr201748" title="itd with array">
  53. <compile files="Foo.java">
  54. <message kind="error" text="Type mismatch: cannot convert from Factory[] to Factory"/>
  55. </compile>
  56. </ajc-test>
  57. <ajc-test dir="bugs160/various" title="incorrect itd error with generics">
  58. <compile options="-1.5 -showWeaveInfo" files="IncorrectMessage.java">
  59. <message kind="weave" text="Type 'Foo' (IncorrectMessage.java) has intertyped method from 'AspectDoWhatEver' (IncorrectMessage.java:'void Marker.doWhatEver()')"/>
  60. <message kind="weave" text="Type 'Marker' (IncorrectMessage.java) has intertyped method from 'AspectDoWhatEver' (IncorrectMessage.java:'void Marker.doWhatEver()')"/>
  61. </compile>
  62. </ajc-test>
  63. <ajc-test dir="bugs160/various" title="incorrect itd error with generics - 2">
  64. <compile options="-1.5 -showWeaveInfo" files="IncorrectMessage2.java">
  65. <message kind="weave" text="Type 'Foo' (IncorrectMessage2.java) has intertyped method from 'AspectDoWhatEver' (IncorrectMessage2.java:'void Marker.doWhatEver()')"/>
  66. <message kind="weave" text="Type 'Marker' (IncorrectMessage2.java) has intertyped method from 'AspectDoWhatEver' (IncorrectMessage2.java:'void Marker.doWhatEver()')"/>
  67. </compile>
  68. </ajc-test>
  69. <ajc-test dir="bugs160/various" title="hasmethod anno value - I">
  70. <compile options="-1.5 -XhasMember -showWeaveInfo" files="A.java">
  71. <message kind="weave" text="Extending interface set for type 'B' (A.java) to include 'java.io.Serializable' (A.java)"/>
  72. </compile>
  73. </ajc-test>
  74. <ajc-test dir="bugs160/various" title="hasmethod anno value - Z">
  75. <compile options="-1.5 -XhasMember -showWeaveInfo" files="Z.java">
  76. <message kind="weave" text="Extending interface set for type 'B' (Z.java) to include 'java.io.Serializable' (Z.java)"/>
  77. </compile>
  78. </ajc-test>
  79. <ajc-test dir="bugs160/various" title="hasmethod anno value - S">
  80. <compile options="-1.5 -XhasMember -showWeaveInfo" files="S.java">
  81. <message kind="weave" text="Extending interface set for type 'B' (S.java) to include 'java.io.Serializable' (S.java)"/>
  82. </compile>
  83. </ajc-test>
  84. <ajc-test dir="bugs160/various" title="hasmethod semantics">
  85. <compile options="-1.5 -XhasMember -Xlint:ignore" files="HasMethodSemantics.java"/>
  86. <run class="HasMethodSemantics">
  87. <stdout>
  88. <line text="Implements Marker? no"/>
  89. </stdout>
  90. </run>
  91. </ajc-test>
  92. <ajc-test dir="bugs160/pr204505" title="generics method matching - 1">
  93. <compile options="-1.5 -showWeaveInfo" files="Bug.java">
  94. <message kind="weave" text="execution(void C.save(java.lang.Object))"/>
  95. <message kind="weave" text="execution(void C.saveAll(java.util.Collection))"/>
  96. </compile>
  97. </ajc-test>
  98. <ajc-test dir="bugs160/pr204505" title="generics method matching - 2">
  99. <compile options="-1.5" files="GenericInterfaceWithGenericArgumentPointcutBug.java"/>
  100. <run class="mypackage.GenericInterfaceWithGenericArgumentPointcutBug"/>
  101. </ajc-test>
  102. <ajc-test dir="bugs160/pr219298" title="bounds check failure">
  103. <compile options="-1.5" files="TestMarkers.java">
  104. <message kind="error" line="11" text="Bound mismatch: The type TestMarkers.SubGenericsType is not a valid substitute for the bounded"/>
  105. </compile>
  106. </ajc-test>
  107. <ajc-test dir="bugs160/pr219298" title="bounds check failure - 2">
  108. <compile options="-1.5" files="TestMarkers2.java"/>
  109. </ajc-test>
  110. <ajc-test dir="bugs160/pr218167" title="dec field problem">
  111. <compile options="-1.5" files="Test.java">
  112. <message kind="warning" text="already has an annotation of type A, cannot add a second instance"/>
  113. </compile>
  114. </ajc-test>
  115. <ajc-test dir="bugs160/pr206911" title="generics super itd">
  116. <compile options="-1.5" files="VerifyError.java"/>
  117. <run class="bugs.VerifyError"/>
  118. </ajc-test>
  119. <ajc-test dir="bugs160/pr206911" title="generics super itd - 2">
  120. <compile options="-1.5" files="VerifyError2.java"/>
  121. <run class="bugs.VerifyError2"/>
  122. </ajc-test>
  123. <ajc-test dir="bugs160/pr216311" title="serialization and annotation style">
  124. <compile options="-1.5" files="PersistabilityTest.java,IPersistable.java,Persistability.java"/>
  125. <run class="PersistabilityTest"/>
  126. </ajc-test>
  127. <ajc-test dir="bugs160/pr214559" title="decp repetition problem">
  128. <compile files="X.java"/>
  129. <run class="test.X"/>
  130. </ajc-test>
  131. <ajc-test dir="bugs160/pr214559" title="decp repetition problem - 2">
  132. <compile files="Y.java"/>
  133. <run class="Y"/>
  134. </ajc-test>
  135. <ajc-test dir="bugs160/pr214559" title="decp repetition problem - 3">
  136. <compile files="TestClass.java Interface1.java Interface1TestClass.java DeclareParentsPrecedenceTest.java TestAspect.java"/>
  137. <run class="DeclareParentsPrecedenceTest"/>
  138. </ajc-test>
  139. <ajc-test dir="bugs160/pr209831" title="illegal state exception with annotations">
  140. <compile options="-1.5 -showWeaveInfo" files="Test.java">
  141. <message kind="weave" text="Join point 'exception-handler(void Test.&lt;catch&gt;(java.lang.Throwable))' in Type 'Test' (Test.java:34) advised by before advice from 'ExactAnnotationTypePatternBug' (Test.java:5)"/>
  142. </compile>
  143. <run class="Test"/>
  144. </ajc-test>
  145. <ajc-test dir="bugs160/pr209831" title="illegal state exception with annotations - 2">
  146. <compile options="-Xlint:ignore -1.5 -showWeaveInfo" files="Test2.java"/>
  147. <run class="Test2"/>
  148. </ajc-test>
  149. <ajc-test dir="bugs160/pr211146" title="itd lost generic signature">
  150. <compile options=" -1.5" files="StringAspect.aj,StringClass.java" outjar="foo.jar"/>
  151. <compile options=" -1.5" files="DemoUsage.java" classpath="foo.jar"/>
  152. </ajc-test>
  153. </suite>