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.

ajc160.xml 7.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <!-- AspectJ v1.6.0 Tests -->
  3. <suite>
  4. <!-- first section - dont need a 1.6 vm but fixed in the 1.6 branch of AspectJ -->
  5. <ajc-test dir="bugs160/pr175806" title="coping with bad tables">
  6. <compile options="-1.5" files="A.java"/>
  7. </ajc-test>
  8. <ajc-test dir="bugs160/pr174449" title="problem with generic aspect and generic pointcut">
  9. <compile options="-1.5" files="Foo.java"/>
  10. <run class="Foo">
  11. <stderr>
  12. <line text="around advice executing: servant class is class Boo"/>
  13. <line text="around advice executing: servant class is class Goo"/>
  14. </stderr>
  15. </run>
  16. </ajc-test>
  17. <ajc-test dir="bugs160/pr174449" title="problem with generic aspect and generic pointcut - noinline">
  18. <compile options="-1.5 -XnoInline" files="Foo.java"/>
  19. <run class="Foo">
  20. <stderr>
  21. <line text="around advice executing: servant class is class Boo"/>
  22. <line text="around advice executing: servant class is class Goo"/>
  23. </stderr>
  24. </run>
  25. </ajc-test>
  26. <ajc-test dir="bugs160/pr171953_2" title="problem with generic methods and ordering - ok">
  27. <compile options="-1.5" files="test/ListFactoryAspect.aj, test/AbstractProcessor.java,test/ListFactory.java,test/ListFactoryConsumer.java,test/Processor.java,test/SimpleListFactoryConsumer.java">
  28. </compile>
  29. </ajc-test>
  30. <ajc-test dir="bugs160/pr171953_2" title="problem with generic methods and ordering - bad">
  31. <compile options="-1.5" files="test/ListFactory.java,test/ListFactoryConsumer.java,test/SimpleListFactoryConsumer.java,test/Processor.java,test/ListFactoryAspect.aj,test/AbstractProcessor.java">
  32. </compile>
  33. </ajc-test>
  34. <ajc-test dir="bugs160/pr171953" title="problem with itd and join point signature collection - bad">
  35. <compile options="-1.5 -showWeaveInfo" files="test/AbstractExecutable.java,test/AnotherExecutable.java,test/Executable.java,test/ExecutionAspect.aj,test/SecondTestExecutable.java test/SubTestExecutable.java test/TestExecutable.java">
  36. <message kind="weave" text="Join point 'method-execution(void test.SecondTestExecutable.execute())' in Type 'test.SecondTestExecutable' (SecondTestExecutable.java:5) advised by around advice from 'test.ExecutionAspect' (ExecutionAspect.aj:9)"/>
  37. <message kind="weave" text="Extending interface set for type 'test.AbstractExecutable' (AbstractExecutable.java) to include 'java.io.Serializable' (ExecutionAspect.aj)"/>
  38. <message kind="weave" text="Join point 'method-execution(void test.SubTestExecutable.execute())' in Type 'test.SubTestExecutable' (SubTestExecutable.java:6) advised by around advice from 'test.ExecutionAspect' (ExecutionAspect.aj:9)"/>
  39. <message kind="weave" text="Join point 'method-execution(void test.TestExecutable.execute())' in Type 'test.TestExecutable' (TestExecutable.java:5) advised by around advice from 'test.ExecutionAspect' (ExecutionAspect.aj:9)"/>
  40. </compile>
  41. <run class="test.SecondTestExecutable"/>
  42. </ajc-test>
  43. <ajc-test dir="bugs160/pr171953" title="problem with itd and join point signature collection - ok">
  44. <compile options="-1.5 -showWeaveInfo" files="test/SecondTestExecutable.java test/AbstractExecutable.java test/AnotherExecutable.java test/Executable.java test/ExecutionAspect.aj test/RunnableAspect.aj test/SubTestExecutable.java test/TestExecutable.java">
  45. <message kind="weave" text="Join point 'method-execution(void test.SecondTestExecutable.execute())' in Type 'test.SecondTestExecutable' (SecondTestExecutable.java:5) advised by around advice from 'test.ExecutionAspect' (ExecutionAspect.aj:9)"/>
  46. <message kind="weave" text="Extending interface set for type 'test.AbstractExecutable' (AbstractExecutable.java) to include 'java.io.Serializable' (ExecutionAspect.aj)"/>
  47. <message kind="weave" text="Join point 'method-execution(void test.SubTestExecutable.execute())' in Type 'test.SubTestExecutable' (SubTestExecutable.java:6) advised by around advice from 'test.ExecutionAspect' (ExecutionAspect.aj:9)"/>
  48. <message kind="weave" text="Join point 'method-execution(void test.TestExecutable.execute())' in Type 'test.TestExecutable' (TestExecutable.java:5) advised by around advice from 'test.ExecutionAspect' (ExecutionAspect.aj:9)"/>
  49. </compile>
  50. <run class="test.SecondTestExecutable"/>
  51. </ajc-test>
  52. <ajc-test dir="bugs160/pr171952" title="generic methods and ITDs">
  53. <compile files="Foo.java,FooAspect.java" options="-1.5"/>
  54. </ajc-test>
  55. <ajc-test dir="bugs160/pr169428" title="using decp annotation without aspect annotation">
  56. <compile files="AnAspect.java" options="-1.5">
  57. <message kind="error" text="Found @AspectJ annotations in a non @Aspect type 'AnAspect'"/>
  58. </compile>
  59. </ajc-test>
  60. <ajc-test dir="bugs160/pr170467" title="itds and parameterized parameters">
  61. <compile files="Bug.aj" options="-1.5"/>
  62. <compile files="Bug2.aj" options="-1.5"/>
  63. </ajc-test>
  64. <ajc-test dir="bugs160/pr169706" title="inherited annotations">
  65. <compile files="A.java,B.java,C.java,MyAspect.java,MyAnnotation.java,Test.java" options="-1.5 -showWeaveInfo">
  66. <message kind="weave" text="Join point 'method-call(void C.foo())' in Type 'Test' (Test.java:5) advised by before advice from 'MyAspect' (MyAspect.java:4)"/>
  67. </compile>
  68. </ajc-test>
  69. <ajc-test dir="bugs160/pr165885" title="generic field npe">
  70. <compile files="Concrete.java,Abstract.java,Aspect.java" options="-1.5">
  71. <message kind="warning" line="8" text="foo"/>
  72. </compile>
  73. </ajc-test>
  74. <ajc-test dir="bugs160/pr168044" title="complex generics - 1">
  75. <compile files="AbstractNode.java" options="-1.5">
  76. </compile>
  77. </ajc-test>
  78. <ajc-test dir="bugs160/pr168063" title="incorrectly marking field transient">
  79. <compile files="A.java"/>
  80. <run class="A">
  81. <stdout>
  82. <line text="It worked, data preserved!"/>
  83. </stdout>
  84. </run>
  85. </ajc-test>
  86. <ajc-test dir="bugs160/pr166084" title="incorrect optimization of istore">
  87. <compile files="X.java" inpath="simple.jar"/>
  88. <run class="Simple"/>
  89. </ajc-test>
  90. <ajc-test dir="bugs160/pr165631" title="dual parameterizations not allowed">
  91. <!-- two variations of the same situation, should fail in the same way -->
  92. <compile files="Bug.java" options="-1.5">
  93. <message kind="error" line="12" text="Cannot declare parent B"/>
  94. </compile>
  95. <compile files="Bug2.java" options="-1.5">
  96. <message kind="error" line="13" text="Cannot declare parent B"/>
  97. </compile>
  98. </ajc-test>
  99. <ajc-test dir="ltw"
  100. title="Suppress warnings1"
  101. keywords="xlint, ltw, nowarn, pr166238">
  102. <compile
  103. files="Main.java"
  104. >
  105. </compile>
  106. <run class="Main" ltw="aop-noxlintfile-nowarn.xml">
  107. <stderr/> <!-- no warnings from missing xlint file: they are suppressed -->
  108. </run>
  109. </ajc-test>
  110. <ajc-test dir="ltw"
  111. title="Suppress warnings2"
  112. keywords="xlint, ltw, nowarn, pr166238">
  113. <compile
  114. files="Main.java"
  115. >
  116. </compile>
  117. <run class="Main" ltw="aop-noxlintfile-warnnone.xml">
  118. <stderr/> <!-- no warnings from missing xlint file: they are suppressed -->
  119. </run>
  120. </ajc-test>
  121. <!-- second section - need a 1.6 vm -->
  122. </suite>