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.

ajc166.xml 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs166/pr286473" title="parents ltw - binary">
  4. <compile files="Anno.java Top.java Middle.java Bottom.java" outjar="code.jar" options="-1.5 -Xlint:ignore"/>
  5. <compile files="Mark.java LTWTest.java" inpath="code.jar" options="-1.5 -showWeaveInfo">
  6. <message kind="weave" text="Type 'Mark$IMarker' (Mark.java) has intertyped method from 'Mark' (Mark.java:'java.lang.String Mark$IMarker.markMethod()')"/>
  7. <message kind="weave" text="Extending interface set for type 'Top' (Top.java) to include 'Mark$IMarker' (Mark.java)"/>
  8. <message kind="weave" text="Type 'Top' (Top.java) has intertyped method from 'Mark' (Mark.java:'java.lang.String Mark$IMarker.markMethod()')"/>
  9. </compile>
  10. <run class="LTWTest">
  11. <stdout>
  12. <line text="Bottom.getMethods()"/>
  13. <line text="bottom : Bottom"/>
  14. <line text="markMethod : Top"/>
  15. <line text="middle : Middle"/>
  16. </stdout>
  17. </run>
  18. </ajc-test>
  19. <ajc-test dir="bugs166/pr286473" title="parents ltw - ltw">
  20. <compile files="Anno.java Top.java Middle.java Bottom.java" outjar="code.jar" options="-1.5 -Xlint:ignore"/>
  21. <compile files="Mark.java LTWTest.java" classpath="code.jar" options="-1.5">
  22. </compile>
  23. <run class="LTWTest" ltw="aop.xml">
  24. <stderr>
  25. <line text="Extending interface set for type 'Top' (Top.java) to include 'Mark$IMarker' (Mark.java)"/>
  26. <line text="see also:"/>
  27. <line text="Type 'Top' (Top.java) has intertyped method from 'Mark' (Mark.java:'java.lang.String Mark$IMarker.markMethod()')"/>
  28. <line text="see also:"/>
  29. <line text="Type 'Mark$IMarker' (Mark.java) has intertyped method from 'Mark' (Mark.java:'java.lang.String Mark$IMarker.markMethod()')"/>
  30. <line text="see also:"/>
  31. <!--
  32. <line text="Extending interface set for type 'Bottom' (Bottom.java) to include 'Mark$IMarker' (Mark.java)"/>
  33. <line text="Type 'Bottom' (Bottom.java) has intertyped method from 'Mark' (Mark.java:'java.lang.String Mark$IMarker.markMethod()')"/>
  34. <line text="Type 'Mark$IMarker' (Mark.java) has intertyped method from 'Mark' (Mark.java:'java.lang.String Mark$IMarker.markMethod()')"/>
  35. <line text="Extending interface set for type 'Middle' (Middle.java) to include 'Mark$IMarker' (Mark.java)"/>
  36. <line text="Type 'Middle' (Middle.java) has intertyped method from 'Mark' (Mark.java:'java.lang.String Mark$IMarker.markMethod()')"/>
  37. <line text="Extending interface set for type 'Top' (Top.java) to include 'Mark$IMarker' (Mark.java)"/>
  38. <line text="Type 'Top' (Top.java) has intertyped method from 'Mark' (Mark.java:'java.lang.String Mark$IMarker.markMethod()')"/>
  39. -->
  40. </stderr>
  41. <stdout>
  42. <line text="Bottom.getMethods()"/>
  43. <line text="bottom : Bottom"/>
  44. <line text="markMethod : Top"/>
  45. <line text="middle : Middle"/>
  46. </stdout>
  47. </run>
  48. </ajc-test>
  49. <ajc-test dir="bugs166/pr290227" title="npe for javac built">
  50. <compile files="" inpath="javacCode.jar" options="-1.5 -Xlint:ignore"/>
  51. </ajc-test>
  52. <ajc-test dir="bugs166/pr288049" title="itd decanno">
  53. <compile files="org/othtests/MyClass.java org/othtests/MySubClass.java org/othtests/AddSomeAnnotation.java" options="-1.5 -showWeaveInfo">
  54. <message kind="weave" text="'public java.lang.String org.othtests.MySubClass.doOne()' (MySubClass.java:5) is annotated with"/>
  55. <message kind="weave" text="'public java.lang.String org.othtests.MySubClass.doTwo()' (MySubClass.java:9) is annotated with"/>
  56. </compile>
  57. </ajc-test>
  58. <ajc-test dir="bugs166/pr288712" title="verifyerror anno style">
  59. <compile files="answers/Answer2h.java figures/FigureElement.java figures/Line.java figures/Point.java figures/ShapeFigureElement.java Main.java" options="-1.5"/>
  60. <run class="Main"/>
  61. </ajc-test>
  62. <ajc-test dir="bugs166/pr288635" title="munger cce - 2">
  63. <compile files="AddAnnotation.java MakeItd.java InterceptTraceds.java TestClass.java Anno.java" options="-1.5 -XterminateAfterCompilation"/>
  64. <run class="TestClass" ltw="aop1.xml">
  65. <stdout>
  66. <line text="Executing execution(int TestClass.doAnother()) on level debug"/>
  67. </stdout>
  68. </run>
  69. </ajc-test>
  70. <ajc-test dir="bugs166/pr288635" title="munger cce">
  71. <compile files="org/tests/atann/AddAnnotations.aj org/tests/atann/AddITDDoMethod.aj org/tests/atann/InterceptTraceds.aj org/tests/atann/TestClass.java org/tests/atann/Traced.java" options="-1.5"/>
  72. <run class="org.tests.atann.TestClass">
  73. <stdout>
  74. <line text="Executing execution(String org.tests.atann.TestClass.doAnnotated()) on level debug"/>
  75. <line text="Executing execution(int org.tests.atann.TestClass.doITDAnnotation()) on level debug"/>
  76. <line text="Executing execution(int org.tests.atann.TestClass.doAnother()) on level debug"/>
  77. </stdout>
  78. </run>
  79. </ajc-test>
  80. <ajc-test dir="bugs166/pr286375" title="npe on bad aspect decl">
  81. <compile files="DatabaseOperationMonitor.java" options="-1.5" outjar="wibble.jar"/>
  82. <compile files="" inpath="wibble.jar" options="-1.5"/>
  83. </ajc-test>
  84. <ajc-test dir="bugs166/pr290087" title="binary decp super rewrite">
  85. <compile files="Bean.java BeanChild.java GenericParent.java" options="-1.5" outjar="base.jar"/>
  86. <compile files="Interface.java InterfaceParent.java BeanHasInterface.java" inpath="base.jar" options="-1.5"/>
  87. <run class="BeanChild"/>
  88. </ajc-test>
  89. <ajc-test dir="bugs166/pr287597" title="anno modifier ordering - 1">
  90. <compile files="A.java" options="-1.5 -showWeaveInfo">
  91. <message kind="weave" text="foo"/>
  92. </compile>
  93. </ajc-test>
  94. <ajc-test dir="bugs166/pr287613" title="dec anno compound expressions">
  95. <compile files="DeclareAnnot.java" options="-1.5"/>
  96. </ajc-test>
  97. <ajc-test dir="bugs166/pr284862" title="npe hasmember">
  98. <compile files="InterfaceToAdd.java AnnotatedMethodImpl.aj AspectToMatch.aj AnnotatedMethodInterface.java Entity.java EntityClass.java PresentAnnotation.java SearchAnnotation.java" options="-1.5 -XhasMember"/>
  99. </ajc-test>
  100. <ajc-test dir="bugs166/pr284862" title="npe hasmember - 2">
  101. <compile files="AnnotatedMethodInterface.java InterfaceToAdd.java AnnotatedMethodImpl.aj AspectToMatch.aj Entity.java EntityClass.java PresentAnnotation.java SearchAnnotation.java" options="-1.5 -XhasMember"/>
  102. </ajc-test>
  103. <ajc-test dir="bugs166/pr284862" title="npe hasmember - 3">
  104. <compile files="AnnotatedMethodInterface.java InterfaceToAdd.java AnnotatedMethodImpl.aj AspectToMatch.aj Entity.java EntityClass.java PresentAnnotation.java SearchAnnotation.java" options="-Xset:pipelineCompilation=false -1.5 -XhasMember"/>
  105. </ajc-test>
  106. <ajc-test dir="bugs165/pr279983" title="generics bridge">
  107. <compile files="X.java" options="-1.5"/>
  108. <run class="X"/>
  109. </ajc-test>
  110. <ajc-test dir="bugs166/pr282299" title="generics and decp">
  111. <compile files="Code.java" options="-1.5"/>
  112. </ajc-test>
  113. <ajc-test dir="bugs166/pr284297" title="generic signature problem">
  114. <compile files="DomainLogic.java DomainObject.java FancyDomainLogic.java" options="-1.5" outjar="code.jar"/>
  115. <compile files="FancyDomainLogicImpl.java" options="-1.5" classpath="code.jar"/>
  116. </ajc-test>
  117. <ajc-test dir="bugs166/pr283229" title="interfaces and serializable">
  118. <compile files="Foo.java" options="-1.5 -XaddSerialVersionUID"/>
  119. <run class="Foo">
  120. <!--
  121. <stdout>
  122. <line text="if method: public static final boolean X.ajc$if$1ba()"/>
  123. <line text="if method: public static final boolean X.ajc$if$177()"/>
  124. <line text="if method: public static final boolean X.ajc$if$165()"/>
  125. </stdout>
  126. -->
  127. </run>
  128. </ajc-test>
  129. </suite>