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.

ajc165.xml 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs165/pr277959" title="verifyerror">
  4. <compile files="AOPTest.java CodeAspect.java" options="-1.5"/>
  5. <run class="example.AOPTest"/>
  6. </ajc-test>
  7. <ajc-test dir="bugs165/pr277508" title="if method names">
  8. <compile files="Basic.java" options="-1.5"/>
  9. <run class="Basic">
  10. <stdout>
  11. <line text="if method: public static final boolean X.ajc$if$1ba()"/>
  12. <line text="if method: public static final boolean X.ajc$if$177()"/>
  13. <line text="if method: public static final boolean X.ajc$if$165()"/>
  14. </stdout>
  15. </run>
  16. </ajc-test>
  17. <ajc-test dir="bugs165/pr277508" title="if method names - 2">
  18. <compile files="Basic2.java" options="-1.5"/>
  19. <run class="Basic2">
  20. <stdout>
  21. <line text="if method: public static final boolean X.ajc$if$16d()"/>
  22. <line text="if method: public static final boolean X.ajc$if$17f()"/>
  23. <line text="if method: public static final boolean X.ajc$if$1c0()"/>
  24. </stdout>
  25. </run>
  26. </ajc-test>
  27. <ajc-test dir="bugs165/pr275625" title="dec anno method">
  28. <compile files="A.java" options="-1.5"/>
  29. </ajc-test>
  30. <ajc-test dir="bugs165/pr275625" title="dec anno field">
  31. <compile files="F.java" options="-1.5"/>
  32. </ajc-test>
  33. <ajc-test dir="bugs165/pr275032" title="itd default ctor">
  34. <compile files="A.java X.java" options="-1.5 -Xlint:ignore"/>
  35. <run class="A">
  36. <stdout>
  37. <line text="itd ctor"/>
  38. </stdout>
  39. </run>
  40. </ajc-test>
  41. <ajc-test dir="bugs165/pr275032/c2" title="itd default ctor - 2">
  42. <compile files="A.java X.java" options="-1.5 -Xlint:ignore">
  43. <message kind="error" text="inter-type declaration from X conflicts with existing"/>
  44. </compile>
  45. </ajc-test>
  46. <ajc-test dir="bugs165/pr275032/c2" title="itd default ctor - 3">
  47. <compile files="A.java" options="-outjar foo.jar"/>
  48. <compile files="X.java" options="-1.5 -Xlint:ignore" inpath="foo.jar">
  49. <message kind="error" text="inter-type declaration from X conflicts with existing"/>
  50. </compile>
  51. </ajc-test>
  52. <ajc-test dir="bugs165/pr275032" title="itd default ctor - 4">
  53. <compile files="A.java" options="-outjar foo.jar"/>
  54. <compile files="X.java" options="-1.5" inpath="foo.jar">
  55. </compile>
  56. <run class="A">
  57. <stdout>
  58. <line text="itd ctor"/>
  59. </stdout>
  60. </run>
  61. </ajc-test>
  62. <ajc-test dir="bugs165/pr272233" title="funky pointcut">
  63. <compile files="Iffy.java" options="-1.5">
  64. <message kind="warning" text="void is not a generic type"/>
  65. </compile>
  66. </ajc-test>
  67. <ajc-test dir="bugs165/pr272233" title="funky pointcut 2">
  68. <compile files="Iffy2.java" options="-1.5 -showWeaveInfo">
  69. <!-- Should occur twice, but messages are identical, so they cannot be counted -->
  70. <message kind="warning" text="arrays cannot have a void type, but found 'void[]' in pointcut [Xlint:arrayCannotBeVoid]"/>
  71. <message kind="warning" text="arrays cannot have a void type, but found 'void[]' in pointcut [Xlint:arrayCannotBeVoid]"/>
  72. <message kind="warning" text="advice defined in Iffy2 has not been applied [Xlint:adviceDidNotMatch]" line="14"/>
  73. <message kind="warning" text="advice defined in Iffy2 has not been applied [Xlint:adviceDidNotMatch]" line="39"/>
  74. <message kind="warning" text="advice defined in Iffy2 has not been applied [Xlint:adviceDidNotMatch]" line="48"/>
  75. <message kind="weave" aspectFile="Iffy2.java" aspectLine="23" text="method-execution(void Iffy2.myVoid())' in Type 'Iffy2' (Iffy2.java:50) advised by before advice"/>
  76. <message kind="weave" aspectFile="Iffy2.java" aspectLine="35" text="method-execution(java.util.Collection[] Iffy2.getCollectionArray())' in Type 'Iffy2' (Iffy2.java:52) advised by before advice"/>
  77. <message kind="weave" aspectFile="Iffy2.java" aspectLine="31" text="method-execution(java.util.Collection[] Iffy2.getCollectionArray())' in Type 'Iffy2' (Iffy2.java:52) advised by before advice"/>
  78. <message kind="weave" aspectFile="Iffy2.java" aspectLine="27" text="method-execution(java.util.Collection[] Iffy2.getCollectionArray())' in Type 'Iffy2' (Iffy2.java:52) advised by before advice"/>
  79. <message kind="weave" aspectFile="Iffy2.java" aspectLine="23" text="method-execution(java.util.Collection[] Iffy2.getCollectionArray())' in Type 'Iffy2' (Iffy2.java:52) advised by before advice"/>
  80. <message kind="weave" aspectFile="Iffy2.java" aspectLine="10" text="method-execution(java.util.Collection[] Iffy2.getCollectionArray())' in Type 'Iffy2' (Iffy2.java:52) advised by before advice"/>
  81. <message kind="weave" aspectFile="Iffy2.java" aspectLine="43" text="method-execution(java.util.Collection[] Iffy2.getIntegerCollectionArray())' in Type 'Iffy2' (Iffy2.java:56) advised by before advice"/>
  82. <message kind="weave" aspectFile="Iffy2.java" aspectLine="27" text="method-execution(java.util.Collection[] Iffy2.getIntegerCollectionArray())' in Type 'Iffy2' (Iffy2.java:56) advised by before advice"/>
  83. <message kind="weave" aspectFile="Iffy2.java" aspectLine="23" text="method-execution(java.util.Collection[] Iffy2.getIntegerCollectionArray())' in Type 'Iffy2' (Iffy2.java:56) advised by before advice"/>
  84. <message kind="weave" aspectFile="Iffy2.java" aspectLine="10" text="method-execution(java.util.Collection[] Iffy2.getIntegerCollectionArray())' in Type 'Iffy2' (Iffy2.java:56) advised by before advice"/>
  85. </compile>
  86. </ajc-test>
  87. <ajc-test dir="bugs165/pr265356" title="annotation style message positions">
  88. <compile files="Main.java" options="-1.5">
  89. <message kind="warning" line="11"/>
  90. <message kind="warning" line="13"/>
  91. <message kind="warning" line="14"/>
  92. </compile>
  93. </ajc-test>
  94. <ajc-test dir="bugs165/pr271169" title="around call npe">
  95. <compile files="HypChecksums.java" options="-1.5"/>
  96. </ajc-test>
  97. <ajc-test dir="bugs165/pr273628" title="verifyerror on anno bind">
  98. <compile files="AnnotationAspect.java ApiDescriptor.java AspectTargetClass.java MonitorableMethod.java TestPointcutAnnotationAspect.java" options="-1.5"/>
  99. <run class="p.TestPointcutAnnotationAspect"/>
  100. </ajc-test>
  101. <ajc-test dir="bugs165/pr272825" title="generic ITD">
  102. <compile files="Concrete.java GenericSuper.java ITDOfMethod.aj Main.java" options="-1.5"/>
  103. <run class="Main">
  104. <stdout>
  105. <line text="In normal method"/>
  106. <line text="else"/>
  107. <line text="1"/>
  108. <line text="In ITD method"/>
  109. <line text="with"/>
  110. <line text="2"/>
  111. </stdout>
  112. </run>
  113. </ajc-test>
  114. </suite>