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.

ajc1611.xml 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs1611/pr336880" title="bounds check confusion">
  4. <compile files="First.java" options="-1.5"/>
  5. <compile files="Second.java" aspectpath="." options="-1.5"/>
  6. </ajc-test>
  7. <ajc-test dir="bugs1611/pr336774" title="clashing itds">
  8. <compile files="First.java" options="-1.5"/>
  9. <compile files="Test.java" aspectpath="." options="-1.5"/>
  10. </ajc-test>
  11. <ajc-test dir="bugs1611/pr336745" title="incorrect signature">
  12. <compile files="Foo.aj" options="-1.5"/>
  13. </ajc-test>
  14. <ajc-test dir="bugs1611/pr336471" title="esjp">
  15. <compile files="Tester.aj" options="-1.5 -Xset:targetRuntime1_6_10=true"/>
  16. <run class="Tester">
  17. <stdout>
  18. <line text="execution(void Tester.main(String[]))"/>
  19. <line text="execution(void Foo.run())"/>
  20. <line text="hello"/>
  21. </stdout>
  22. </run>
  23. </ajc-test>
  24. <ajc-test dir="bugs1611/pr336136" title="itit">
  25. <compile files="Country_Roo_Op4j.java">
  26. <message kind="error" text="The import com.foo cannot be resolved" line="1"/>
  27. <message kind="error" text="The import org.javaruntype cannot be resolved" line="3"/>
  28. <message kind="error" text="The import org.op4j cannot be resolved" line="4"/>
  29. <message kind="error" text="The import org.op4j cannot be resolved" line="5"/>
  30. <message kind="error" text="Country cannot be resolved to a type" line="9"/>
  31. <message kind="error" text="Function cannot be resolved to a type" line="11"/>
  32. <message kind="error" text="can't determine modifiers of missing type Country_Roo_Op4j$Keys"/>
  33. </compile>"
  34. </ajc-test>
  35. <ajc-test dir="bugs1611/pr336136" title="itit - 2">
  36. <compile files="Country_Roo_Op4j2.java" options="-1.5">
  37. <message kind="error" text="The import com.foo cannot be resolved" line="1"/>
  38. <message kind="error" text="The import org.javaruntype cannot be resolved" line="3"/>
  39. <message kind="error" text="The import org.op4j cannot be resolved" line="4"/>
  40. <message kind="error" text="The import org.op4j cannot be resolved" line="5"/>
  41. <message kind="error" text="Country cannot be resolved to a type" line="9"/>
  42. <message kind="error" text="Country cannot be resolved to a type" line="11"/>
  43. <message kind="error" text="Function cannot be resolved to a type" line="11"/>
  44. <message kind="error" text="Get cannot be resolved" line="11"/>
  45. <message kind="error" text="Types cannot be resolved" line="11"/>
  46. <message kind="error" text="can't determine modifiers of missing type Country_Roo_Op4j2$Keys"/>
  47. </compile>"
  48. </ajc-test>
  49. <ajc-test dir="bugs1611/pr335682" title="pr335682">
  50. <compile inpath="foo.jar" options="-1.4" outjar="bar.jar"/>
  51. </ajc-test>
  52. <ajc-test dir="bugs1611/pr335682" title="pr335682 - 2">
  53. <compile inpath="case2.jar" options="-1.4" outjar="bar.jar"/>
  54. </ajc-test>
  55. <ajc-test dir="bugs1611/pr335682" title="pr335682 - 3">
  56. <compile inpath="case3.jar" options="-1.4" outjar="bar.jar"/>
  57. </ajc-test>
  58. <ajc-test dir="bugs1611/pr335682" title="pr335682 - 5">
  59. <compile inpath="case5.jar" options="-1.4" outjar="bar.jar"/>
  60. </ajc-test>
  61. <ajc-test dir="bugs1611/pr335783" title="pr335783">
  62. <compile files="A.java" options="-1.5"/>
  63. <compile files="X.aj" options="-1.5 -Xlint:ignore" />
  64. <run class="A" ltw="aop.xml">
  65. <stdout>
  66. <line text="OK"/>
  67. </stdout>
  68. </run>
  69. </ajc-test>
  70. <ajc-test dir="bugs1611/pr333274" title="anno style advice chain">
  71. <compile files="ma/Annotation1.java ma/aspect1/Aspect1.java ma/aspect3/Aspect3.java ma/Main.java ma/Precedence.java" options="-1.5"/>
  72. <run class="ma.Main">
  73. <stdout>
  74. <line text="&gt;In Aspect1"/>
  75. <line text="&gt;In Aspect3"/>
  76. <line text="Method call"/>
  77. <line text="&lt;In Aspect3"/>
  78. <line text="=In Aspect1"/>
  79. <line text="&gt;In Aspect3"/>
  80. <line text="Method call"/>
  81. <line text="&lt;In Aspect3"/>
  82. <line text="&lt;In Aspect1"/>
  83. </stdout>
  84. </run>
  85. </ajc-test>
  86. <ajc-test dir="bugs1611/pr333274" title="code style advice chain - no inline">
  87. <compile files="ma2/Annotation1.java ma2/aspect1/Aspect1.java ma2/aspect3/Aspect3.java ma2/Main.java ma2/Precedence.java" options="-1.5 -XnoInline"/>
  88. <run class="ma2.Main">
  89. <stdout>
  90. <line text="&gt;In Aspect1"/>
  91. <line text="&gt;In Aspect3"/>
  92. <line text="Method call"/>
  93. <line text="&lt;In Aspect3"/>
  94. <line text="=In Aspect1"/>
  95. <line text="&gt;In Aspect3"/>
  96. <line text="Method call"/>
  97. <line text="&lt;In Aspect3"/>
  98. <line text="&lt;In Aspect1"/>
  99. </stdout>
  100. </run>
  101. </ajc-test>
  102. <ajc-test dir="bugs1611/pr333274" title="code style advice chain">
  103. <compile files="ma2/Annotation1.java ma2/aspect1/Aspect1.java ma2/aspect3/Aspect3.java ma2/Main.java ma2/Precedence.java" options="-1.5 -XnoInline"/>
  104. <run class="ma2.Main">
  105. <stdout>
  106. <line text="&gt;In Aspect1"/>
  107. <line text="&gt;In Aspect3"/>
  108. <line text="Method call"/>
  109. <line text="&lt;In Aspect3"/>
  110. <line text="=In Aspect1"/>
  111. <line text="&gt;In Aspect3"/>
  112. <line text="Method call"/>
  113. <line text="&lt;In Aspect3"/>
  114. <line text="&lt;In Aspect1"/>
  115. </stdout>
  116. </run>
  117. </ajc-test>
  118. <ajc-test dir="bugs1611/pr328840" title="pr328840">
  119. <compile files="Wibble.aj" options="-1.5 -showWeaveInfo">
  120. <message kind="weave" text="Join point 'field-get(XX Song.i)' in Type 'Song' (Wibble.aj:26) advised by before advice from 'Wibble' (Wibble.aj:9)"/>
  121. <message kind="weave" text="'XX i' of type 'Song' (Wibble.aj) is annotated with @Foo field annotation from 'Wibble' (Wibble.aj:7)"/>
  122. </compile>
  123. <run class="Wibble">
  124. <stdout>
  125. <line text="@Foo()"/>
  126. </stdout></run>
  127. </ajc-test>
  128. <ajc-test dir="bugs1611/pr332388" title="pr332388">
  129. <compile files="M.java" outjar="M.jar" options="-1.5"/>
  130. <compile files="A.java B.java" classpath="M.jar" outjar="AB.jar" options="-1.5"/>
  131. <compile files="MyAspect.java" outjar="aspects.jar" options="-1.5"/>
  132. <compile files="" aspectpath="aspects.jar" inpath="AB.jar" options="-1.5">
  133. <message kind="error" text="Unable to find type for generic bound. Missing type is M [Xlint:cantFindType]"/>
  134. </compile>
  135. </ajc-test>
  136. <ajc-test dir="bugs1611/pr333469" title="pr333469">
  137. <compile files="MyList.java MyList_Serializable.java" options="-1.5"/>
  138. <run class="MyList">
  139. <stdout><line text="ser=1"/></stdout>
  140. </run>
  141. </ajc-test>
  142. <ajc-test dir="bugs1611/pr332388_2" title="pr332388 - 2">
  143. <compile files="M.java" outjar="M.jar" options="-1.5"/>
  144. <compile files="A.java" classpath="M.jar" outjar="A.jar" options="-1.5"/>
  145. <compile files="MyAspect.java" outjar="aspects.jar" options="-1.5"/>
  146. <compile files="" aspectpath="aspects.jar" inpath="A.jar" options="-1.5">
  147. <message kind="error" text="Unable to find type (for bound): M [Xlint:cantFindType]"/>
  148. </compile>
  149. </ajc-test>
  150. </suite>