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.

ajc173.xml 4.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <suite>
  3. <ajc-test dir="bugs173/pr407739" title="add remove annos">
  4. <compile files="MyAnnotation.java Hello.java Aspect.java" options="-1.5 -showWeaveInfo">
  5. <message kind="weave" text="'private String dummy [RuntimeVisibleAnnotations]' of type 'Hello' (Hello.java) has had @MyAnnotation field annotation removed by 'Aspect' (Aspect.java:3)"/>
  6. <message kind="weave" text="'private String dummy [RuntimeVisibleAnnotations]' of type 'Hello' (Hello.java) is annotated with @MyAnnotation(dummy2 = &quot;korte&quot;) field annotation from 'Aspect' (Aspect.java:4)"/>
  7. </compile>
  8. <run class="Hello">
  9. <stdout>
  10. <line text="@MyAnnotation(dummy1=, dummy2=korte)"/>
  11. </stdout>
  12. </run>
  13. </ajc-test>
  14. <ajc-test dir="bugs173/pr408014" title="inner interface mixin">
  15. <compile files="IdentifiableMixin.java" options="-1.5 -showWeaveInfo">
  16. </compile>
  17. </ajc-test>
  18. <ajc-test dir="bugs173/pr407966" title="ordering">
  19. <compile files="Aspect.aj Use.java Def.java" options="-1.5 -showWeaveInfo">
  20. </compile>
  21. </ajc-test>
  22. <ajc-test dir="bugs173/pr407494" title="inner names">
  23. <compile files="A.java" options="-1.5 -showWeaveInfo">
  24. <message kind="weave" text="Join point 'staticinitialization(void a.b.c.A$B.&lt;clinit&gt;())' in Type 'a.b.c.A$B' (A.java:4) advised by before advice from 'a.b.c.X' (A.java:13)"/>
  25. <message kind="weave" text="Join point 'staticinitialization(void a.b.c.A.&lt;clinit&gt;())' in Type 'a.b.c.A' (A.java:3) advised by before advice from 'a.b.c.X' (A.java:13)"/>
  26. <message kind="weave" text="Join point 'staticinitialization(void a.b.c.A$$C.&lt;clinit&gt;())' in Type 'a.b.c.A$$C' (A.java:6) advised by before advice from 'a.b.c.X' (A.java:13)"/>
  27. </compile>
  28. </ajc-test>
  29. <ajc-test dir="bugs173/pr407494" title="inner names 2">
  30. <compile files="A2.java" options="-1.5 -showWeaveInfo">
  31. <message kind="weave" text="Join point 'staticinitialization(void a.b.c.A$$B$$C.&lt;clinit&gt;())' in Type 'a.b.c.A$$B$$C' (A2.java:10) advised by before advice from 'a.b.c.X' (A2.java:14)"/>
  32. </compile>
  33. </ajc-test>
  34. <ajc-test dir="bugs173/pr405016/one" title="class anno value 1">
  35. <compile files="Gimme.java Thingy.java" options="-1.5 -showWeaveInfo">
  36. <message kind="weave" text="Extending interface set for type 'Thingy' (Thingy.java) to include 'java.io.Serializable' (Thingy.java)"/>
  37. </compile>
  38. <run class="Thingy">
  39. <stdout>
  40. <line text="I am serializable? true"/>
  41. </stdout>
  42. </run>
  43. </ajc-test>
  44. <ajc-test dir="bugs173/pr405016" title="class anno value">
  45. <compile files="Gimme.java Thingy.java" options="-1.5 -showWeaveInfo">
  46. <message kind="weave" text="Extending interface set for type 'Thingy' (Thingy.java) to include 'java.io.Serializable' (Thingy.java)"/>
  47. </compile>
  48. <run class="Thingy">
  49. <stdout>
  50. <line text="I am serializable? true"/>
  51. </stdout>
  52. </run>
  53. </ajc-test>
  54. <ajc-test dir="bugs173/pr404601" title="abstract method error">
  55. <compile files="user/IUser.java user/Test.java user/UserTrait.java user/Youser.java" options="-1.5">
  56. <message kind="error" text="private intertype declaration 'void UserTrait$I.testSetUsername(java.lang.String)' clashes with public member 'void Youser.testSetUsername(java.lang.String)'"/>
  57. </compile>
  58. </ajc-test>
  59. <ajc-test dir="bugs173/lyor" title="declare anno on itd">
  60. <compile files="Code.java" options="-1.5 -showWeaveInfo">
  61. <message kind="weave" text="'public void Intface.getName()' (Code.java) is annotated with @Foo method annotation from 'A' (Code.java:7)"/>
  62. <message kind="weave" text="Type 'C' (Code.java) has intertyped method from 'A' (Code.java:'void Intface.getName()')"/>
  63. <message kind="weave" text="Type 'Intface' (Code.java) has intertyped method from 'A' (Code.java:'void Intface.getName()')"/>
  64. </compile>
  65. </ajc-test>
  66. <ajc-test dir="bugs173/lyor/2" title="declare anno on itd 2">
  67. <compile files="A1.java" outjar="aspects1.jar" options="-1.5 -Xlint:ignore"/>
  68. <compile files="Intface.java A2.java" aspectpath="aspects1.jar" outjar="aspects2.jar" options="-1.5"/>
  69. <compile files="Code.java" aspectpath="aspects1.jar;aspects2.jar" options="-1.5"/>
  70. <!--
  71. <message kind="weave" text="'public void Intface.getName()' (A2.java) is annotated with @Foo method annotation from 'A1' (A1.java:7)"/>
  72. <message kind="weave" text="Type 'C' (Code.java) has intertyped method from 'A2' (A2.java:'void Intface.getName()')"/>
  73. <message kind="weave" text="Type 'Intface' (Code.java) has intertyped method from 'A2' (A2.java:'void Intface.getName()')"/>
  74. -->
  75. </ajc-test>
  76. </suite>