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 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. <message kind="weave" text="advised by before advice from 'Iffy2' (Iffy2.java:8)"/>
  70. <message kind="weave" text="advised by before advice from 'Iffy2' (Iffy2.java:11)"/>
  71. <message kind="weave" text="advised by before advice from 'Iffy2' (Iffy2.java:14)"/>
  72. <message kind="weave" text="advised by before advice from 'Iffy2' (Iffy2.java:17)"/>
  73. <message kind="weave" text="advised by before advice from 'Iffy2' (Iffy2.java:20)"/>
  74. <!-- TODO: Activate 'Iffy2.advice6()' pointcut after pointcut parsing problem has been fixed. -->
  75. <!--<message kind="weave" text="advised by before advice from 'Iffy2' (Iffy2.java:XX)"/>-->
  76. </compile>
  77. </ajc-test>
  78. <ajc-test dir="bugs165/pr265356" title="annotation style message positions">
  79. <compile files="Main.java" options="-1.5">
  80. <message kind="warning" line="11"/>
  81. <message kind="warning" line="13"/>
  82. <message kind="warning" line="14"/>
  83. </compile>
  84. </ajc-test>
  85. <ajc-test dir="bugs165/pr271169" title="around call npe">
  86. <compile files="HypChecksums.java" options="-1.5"/>
  87. </ajc-test>
  88. <ajc-test dir="bugs165/pr273628" title="verifyerror on anno bind">
  89. <compile files="AnnotationAspect.java ApiDescriptor.java AspectTargetClass.java MonitorableMethod.java TestPointcutAnnotationAspect.java" options="-1.5"/>
  90. <run class="p.TestPointcutAnnotationAspect"/>
  91. </ajc-test>
  92. <ajc-test dir="bugs165/pr272825" title="generic ITD">
  93. <compile files="Concrete.java GenericSuper.java ITDOfMethod.aj Main.java" options="-1.5"/>
  94. <run class="Main">
  95. <stdout>
  96. <line text="In normal method"/>
  97. <line text="else"/>
  98. <line text="1"/>
  99. <line text="In ITD method"/>
  100. <line text="with"/>
  101. <line text="2"/>
  102. </stdout>
  103. </run>
  104. </ajc-test>
  105. </suite>