Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

ajc183.xml 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs183/443355" title="super calls">
  4. <compile options="-1.8" files="Demo.java"/>
  5. <run class="Demo">
  6. <stdout>
  7. <line text="HW"/>
  8. </stdout>
  9. </run>
  10. </ajc-test>
  11. <ajc-test dir="bugs183/436653" title="suppress type not found 4">
  12. <compile options="-1.8 -Xlint:ignore" files="X.java" outjar="aspects.jar"/>
  13. <compile options="-1.8" files="Runner.java"/>
  14. <run class="Runner" ltw="aop.xml">
  15. <stdout>
  16. <line text="Code.m() running"/>
  17. </stdout>
  18. </run>
  19. </ajc-test>
  20. <ajc-test dir="bugs183/436653" title="suppress type not found 5">
  21. <compile options="-1.8 -Xlint:ignore" files="X.java" outjar="aspects.jar"/>
  22. <compile class="-1.8" files="A.java"/>
  23. <compile options="-1.8" files="Runner.java"/>
  24. <run class="Runner" ltw="aop.xml">
  25. <stdout>
  26. <line text="x"/>
  27. <line text="Code.m() running"/>
  28. </stdout>
  29. </run>
  30. </ajc-test>
  31. <!-- annotation style aspect, missing type so deactivated -->
  32. <ajc-test dir="bugs183/436653" title="suppress type not found 6">
  33. <compile options="-1.8 -Xlint:ignore" files="AnnoX.java" outjar="aspects.jar"/>
  34. <compile options="-1.8" files="Runner.java"/>
  35. <run class="Runner" ltw="aop2.xml">
  36. <stdout>
  37. <line text="Code.m() running"/>
  38. </stdout>
  39. </run>
  40. </ajc-test>
  41. <!-- annotation style aspect, type not missing so not deactivated -->
  42. <ajc-test dir="bugs183/436653" title="suppress type not found 7">
  43. <compile options="-1.8 -Xlint:ignore" files="AnnoX.java A.java" outjar="aspects.jar"/>
  44. <compile options="-1.8" files="Runner.java"/>
  45. <run class="Runner" ltw="aop2.xml">
  46. <stdout>
  47. <line text="x"/>
  48. <line text="Code.m() running"/>
  49. </stdout>
  50. </run>
  51. </ajc-test>
  52. <!-- annotation style aspect, type not missing so not deactivated -->
  53. <ajc-test dir="bugs183/436653" title="suppress type not found 8">
  54. <compile options="-1.8 -Xlint:ignore" files="AnnoX.java A.java" outjar="aspects.jar"/>
  55. <compile options="-1.8 -showWeaveInfo" files="Runner.java" aspectpath="aspects.jar">
  56. <message kind="weave" text="Join point 'method-execution(void Code.m())' in Type 'Code' (Runner.java:8) advised by before advice from 'X' (aspects.jar!AnnoX.class(from AnnoX.java))"/>
  57. </compile>
  58. <run class="Runner">
  59. <stdout>
  60. <line text="x"/>
  61. <line text="Code.m() running"/>
  62. </stdout>
  63. </run>
  64. </ajc-test>
  65. <ajc-test dir="bugs183/436653" title="suppress type not found 3">
  66. <compile options="-1.8" files="A.java" outjar="typeA.jar"/>
  67. <compile options="-1.8" files="B.java" outjar="typeB.jar"/>
  68. <!-- adviceDidNotMatch messages are suppressed here -->
  69. <compile options="-1.8" files="XA3.java XCode.java" outjar="aspects.jar" classpath="typeA.jar"/>
  70. <compile options="-1.8 -verbose" files="Code.java" classpath="typeA.jar" aspectpath="aspects.jar">
  71. <!-- '*' is a hint that we care about only this message, not other messages. avoids needing to list them all -->
  72. <message kind="info" text="*deactivating aspect 'XA2' as it requires type 'B' which cannot be found on the classpath"/>
  73. </compile>
  74. </ajc-test>
  75. <ajc-test dir="bugs183/436653" title="suppress type not found 2">
  76. <compile options="-1.8" files="A.java" outjar="typeA.jar"/>
  77. <!-- adviceDidNotMatch messages are suppressed here -->
  78. <compile options="-1.8" files="XA2.java XCode.java" outjar="aspects.jar" classpath="typeA.jar"/>
  79. <compile options="-1.8" files="Code.java" aspectpath="aspects.jar">
  80. </compile>
  81. </ajc-test>
  82. <ajc-test dir="bugs183/436653" title="suppress type not found">
  83. <compile options="-1.8" files="A.java" outjar="typeA.jar"/>
  84. <!-- adviceDidNotMatch messages are suppressed here -->
  85. <compile options="-1.8" files="XA.java XCode.java" outjar="aspects.jar" classpath="typeA.jar"/>
  86. <compile options="-1.8" files="Code.java" aspectpath="aspects.jar">
  87. <message kind="error" text="can't determine modifiers of missing type A"/>
  88. </compile>
  89. </ajc-test>
  90. <ajc-test dir="bugs183/445395" title="constant pool 0">
  91. <compile options="-1.8" files="Code.java">
  92. </compile>
  93. <run class="Code">
  94. <stdout>
  95. <line text="4"/>
  96. <line text="5"/>
  97. <line text="6"/>
  98. </stdout>
  99. </run>
  100. </ajc-test>
  101. <ajc-test dir="bugs183/445395" title="constant pool">
  102. <compile options="-1.8" files="ControlFlow.java ForReplacer.java ControlFlowCommand.java ControlFlowDriver.java">
  103. </compile>
  104. </ajc-test>
  105. <ajc-test dir="bugs183/444398" title="abstract aspect npe">
  106. <compile options="-1.8" files="Bottom.java Middle.java Top.java">
  107. </compile>
  108. </ajc-test>
  109. <ajc-test dir="bugs183/442425" title="anno style decp">
  110. <compile options="-1.8" files="EntityController.java IEntityController.java MyAnnotatedController.java EntityControllerAspect.java EntityMongoController.java">
  111. <message kind="error" line="23" text="Type mismatch: cannot convert from MyAnnotatedController&lt;String&gt; to IEntityController&lt;String&gt;"/>
  112. <message kind="error" line="30" text="Cannot infer type arguments for MyAnnotatedController&lt;&gt;"/>
  113. </compile>
  114. <!--
  115. <run class="de.scrum_master.app.MyAnnotatedController">
  116. <stdout>
  117. <line text="Doing something"/>
  118. <line text="public static void de.scrum_master.app.MyAnnotatedController.main(java.lang.String[])"/>
  119. <line text="public void de.scrum_master.app.MyAnnotatedController.doSomething()"/>
  120. <line text="public java.lang.Object de.scrum_master.app.MyAnnotatedController.getEntity()"/>
  121. <line text="public void de.scrum_master.app.MyAnnotatedController.setEntity(java.lang.Object)"/>
  122. <line text="Entity value = foo"/>
  123. <line text="Entity value = 123"/>
  124. </stdout>
  125. </run>
  126. -->
  127. </ajc-test>
  128. <ajc-test dir="bugs183/443477" title="verifyerror">
  129. <compile options="-1.7" files="Coo.java"/>
  130. <run class="Coo"/>
  131. </ajc-test>
  132. </suite>