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.

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