123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361 |
- <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
-
- <suite>
-
- <ajc-test dir="bugs193/333274" vm="1.8" title="nested around proceed">
- <compile files="ma/aspect2/Aspect2.java,ma/aspect2/Annotation2.java,ma/aspect3/Aspect3.java,ma/aspect3/Annotation3.java,ma/Precedence.java,ma/Main.java,ma/aspect1/Aspect1.java,ma/aspect1/Annotation1.java" options="-showWeaveInfo -1.8 -XnoInline">
- <message kind="weave" text="Join point 'method-execution(int ma.Main$Dummy.retryTranslateAndTimeLimited())' in Type 'ma.Main$Dummy' (Main.java:16) advised by around advice from 'ma.aspect3.Aspect3' (Aspect3.java:11)"/>
- <message kind="weave" text="Join point 'method-execution(int ma.Main$Dummy.retryTranslateAndTimeLimited())' in Type 'ma.Main$Dummy' (Main.java:16) advised by around advice from 'ma.aspect2.Aspect2' (Aspect2.java:11)"/>
- <message kind="weave" text="Join point 'method-execution(int ma.Main$Dummy.retryTranslateAndTimeLimited())' in Type 'ma.Main$Dummy' (Main.java:16) advised by around advice from 'ma.aspect1.Aspect1' (Aspect1.java:12)"/>
- </compile>
- <!--
- >In Aspect1
- >In Aspect2
- >In Aspect3
- Method call
- <In Aspect3
- <In Aspect2
- =In Aspect1
- Method call
- <In Aspect1
- -->
- <run class="ma.Main">
- <stdout>
- <line text=">In Aspect1"/>
- <line text=">In Aspect2"/>
- <line text=">In Aspect3"/>
- <line text="Method call"/>
- <line text="<In Aspect3"/>
- <line text="<In Aspect2"/>
- <line text="=In Aspect1"/>
- <line text=">In Aspect2"/>
- <line text=">In Aspect3"/>
- <line text="Method call"/>
- <line text="<In Aspect3"/>
- <line text="<In Aspect2"/>
- <line text="<In Aspect1"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs193/543657" vm="1.8" title="overweaving decm - control">
- <compile files="MoodIndicator.java,Code1.java" options="-showWeaveInfo -1.8">
- <message kind="weave" text="Mixing interface 'MoodIndicator$Moody' (MoodIndicator.java) into type 'Code1' (Code1.java)"/>
- <message kind="weave" text="Type 'Code1' (Code1.java) has intertyped method from 'MoodIndicator' (MoodIndicator.java:'Mood MoodIndicator$Moody.getMood()')"/>
- <message kind="weave" text="Join point 'method-execution(void Code1.run())' in Type 'Code1' (Code1.java:2) advised by before advice from 'MoodIndicator' (MoodIndicator.java:21)"/>
- </compile>
- <run class="Code1">
- <stdout>
- <line text="I'm feeling HAPPY"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs193/543657" vm="1.8" title="overweaving decm - reweaving">
- <compile files="MoodIndicator.java,Code1.java" options="-showWeaveInfo -1.8" outjar="one.jar">
- <message kind="weave" text="Mixing interface 'MoodIndicator$Moody' (MoodIndicator.java) into type 'Code1' (Code1.java)"/>
- <message kind="weave" text="Type 'Code1' (Code1.java) has intertyped method from 'MoodIndicator' (MoodIndicator.java:'Mood MoodIndicator$Moody.getMood()')"/>
- <message kind="weave" text="Join point 'method-execution(void Code1.run())' in Type 'Code1' (Code1.java:2) advised by before advice from 'MoodIndicator' (MoodIndicator.java:21)"/>
- </compile>
- <compile inpath="one.jar" options="-showWeaveInfo -1.8">
- <message kind="weave" text="Mixing interface 'MoodIndicator$Moody' (MoodIndicator.java) into type 'Code1' (Code1.java)"/>
- <message kind="weave" text="Type 'Code1' (Code1.java) has intertyped method from 'MoodIndicator' (MoodIndicator.java:'Mood MoodIndicator$Moody.getMood()')"/>
- <message kind="weave" text="Join point 'method-execution(void Code1.run())' in Type 'Code1' (Code1.java:2) advised by before advice from 'MoodIndicator' (one.jar!MoodIndicator.class(from MoodIndicator.java))"/>
- </compile>
- <run class="Code1">
- <stdout>
- <line text="I'm feeling HAPPY"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs193/543657" vm="1.8" title="overweaving decm - 1">
- <compile files="MoodIndicator.java,Code1.java" options="-showWeaveInfo -1.8" outjar="one.jar">
- <message kind="weave" text="Mixing interface 'MoodIndicator$Moody' (MoodIndicator.java) into type 'Code1' (Code1.java)"/>
- <message kind="weave" text="Type 'Code1' (Code1.java) has intertyped method from 'MoodIndicator' (MoodIndicator.java:'Mood MoodIndicator$Moody.getMood()')"/>
- <message kind="weave" text="Join point 'method-execution(void Code1.run())' in Type 'Code1' (Code1.java:2) advised by before advice from 'MoodIndicator' (MoodIndicator.java:21)"/>
- </compile>
- <compile files="MoodIndicator2.java" inpath="one.jar" options="-showWeaveInfo -1.8 -Xset:overWeaving=true">
- <message kind="warning" text="advice defined in MoodIndicator has not been applied [Xlint:adviceDidNotMatch]"/>
- <message kind="weave" text="Mixing interface 'MoodIndicator2$Moody2' (MoodIndicator2.java) into type 'Code1' (Code1.java)"/>
- <message kind="weave" text="Type 'Code1' (Code1.java) has intertyped method from 'MoodIndicator2' (MoodIndicator2.java:'Mood MoodIndicator2$Moody2.getMood2()')"/>
- <message kind="weave" text="Join point 'method-execution(void Code1.run())' in Type 'Code1' (Code1.java:2) advised by before advice from 'MoodIndicator2' (MoodIndicator2.java:20)"/>
- </compile>
- <run class="Code1">
- <stdout>
- <line text="I'm feeling SAD"/>
- <line text="I'm feeling HAPPY"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs193/543657" vm="1.8" title="overweaving decm - 2">
- <compile files="MoodIndicator.java,Code1.java" options="-showWeaveInfo -1.8" outjar="one.jar">
- <message kind="weave" text="Mixing interface 'MoodIndicator$Moody' (MoodIndicator.java) into type 'Code1' (Code1.java)"/>
- <message kind="weave" text="Type 'Code1' (Code1.java) has intertyped method from 'MoodIndicator' (MoodIndicator.java:'Mood MoodIndicator$Moody.getMood()')"/>
- <message kind="weave" text="Join point 'method-execution(void Code1.run())' in Type 'Code1' (Code1.java:2) advised by before advice from 'MoodIndicator' (MoodIndicator.java:21)"/>
- </compile>
- <compile files="MoodIndicator3.java" inpath="one.jar" options="-showWeaveInfo -1.8 -Xset:overWeaving=true">
- <message kind="warning" text="advice defined in MoodIndicator has not been applied [Xlint:adviceDidNotMatch]"/>
- <message kind="weave" text="Mixing interface 'MoodIndicator2$Moody2' (MoodIndicator2.java) into type 'Code1' (Code1.java)"/>
- <message kind="weave" text="Type 'Code1' (Code1.java) has intertyped method from 'MoodIndicator2' (MoodIndicator2.java:'Mood MoodIndicator2$Moody2.getMood2()')"/>
- <message kind="weave" text="Join point 'method-execution(void Code1.run())' in Type 'Code1' (Code1.java:2) advised by before advice from 'MoodIndicator2' (MoodIndicator2.java:20)"/>
- </compile>
- <run class="Code1">
- <stdout>
- <line text="I'm feeling SAD"/>
- <line text="I'm feeling HAPPY"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs193/543657" vm="1.8" title="mood indicator 4">
- <compile files="MoodIndicator4.java" options="-1.8" outjar="one.jar">
- </compile>
- <compile inpath="one.jar" options="-1.8 -Xset:overWeaving=true">
- </compile>
- <run class="Code1">
- <stdout>
- <line text="I'm feeling SAD"/>
- <line text="I'm feeling HAPPY"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs193/543657" vm="1.8" title="overweaving atdecp - control">
- <compile files="Basic3b.java" options="-showWeaveInfo -1.8" outjar="ow1.jar">
- <message kind="weave" text="Extending interface set for type 'Basic3b' (Basic3b.java) to include 'X$I' (Basic3b.java)"/>
- <message kind="weave" text="Type 'Basic3b' (Basic3b.java) has intertyped method from 'X' (Basic3b.java:'void X$I.m2()')"/>
- <message kind="weave" text="Type 'Basic3b' (Basic3b.java) has intertyped method from 'X' (Basic3b.java:'void X$I.m3()')"/>
- <message kind="weave" text="Type 'Basic3b' (Basic3b.java) has intertyped method from 'X' (Basic3b.java:'void X$I.m4()')"/>
- <message kind="weave" text="Join point 'method-call(void X$I.m2())' in Type 'Basic3b' (Basic3b.java:7) advised by before advice from 'X' (Basic3b.java:33)"/>
- <message kind="weave" text="Join point 'method-call(void X$I.m3())' in Type 'Basic3b' (Basic3b.java:8) advised by before advice from 'X' (Basic3b.java:33)"/>
- <message kind="weave" text="Join point 'method-call(void X$I.m2())' in Type 'Basic3b' (Basic3b.java:9) advised by before advice from 'X' (Basic3b.java:33)"/>
- <message kind="weave" text="Join point 'method-call(void X$I.m4())' in Type 'Basic3b' (Basic3b.java:10) advised by before advice from 'X' (Basic3b.java:33)"/>
- <message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'X$IIimpl' (Basic3b.java:23) advised by before advice from 'X' (Basic3b.java:33)"/>
- <message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'Basic3b' (Basic3b.java:11) advised by before advice from 'X' (Basic3b.java:33)"/>
- </compile>
- <compile files="Y.java" inpath="ow1.jar" options=" -1.8">
- </compile>
- <run class="Basic3b">
- <stdout>
- <!-- BUG: There should be one of each X.IImpl and Y.IImpl, just like for @decm. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=543657#c5. -->
- <line text="Y.IImpl.m2() ran"/>
- <line text="Y.IImpl.m2() ran"/>
- <line text="Basic3b.main ran"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs193/543657" vm="1.8" title="overweaving atdecp">
- <compile files="Basic3b.java" options="-showWeaveInfo -1.8" outjar="ow1.jar">
- <message kind="weave" text="Extending interface set for type 'Basic3b' (Basic3b.java) to include 'X$I' (Basic3b.java)"/>
- <message kind="weave" text="Type 'Basic3b' (Basic3b.java) has intertyped method from 'X' (Basic3b.java:'void X$I.m2()')"/>
- <message kind="weave" text="Type 'Basic3b' (Basic3b.java) has intertyped method from 'X' (Basic3b.java:'void X$I.m3()')"/>
- <message kind="weave" text="Type 'Basic3b' (Basic3b.java) has intertyped method from 'X' (Basic3b.java:'void X$I.m4()')"/>
- <message kind="weave" text="Join point 'method-call(void X$I.m2())' in Type 'Basic3b' (Basic3b.java:7) advised by before advice from 'X' (Basic3b.java:33)"/>
- <message kind="weave" text="Join point 'method-call(void X$I.m3())' in Type 'Basic3b' (Basic3b.java:8) advised by before advice from 'X' (Basic3b.java:33)"/>
- <message kind="weave" text="Join point 'method-call(void X$I.m2())' in Type 'Basic3b' (Basic3b.java:9) advised by before advice from 'X' (Basic3b.java:33)"/>
- <message kind="weave" text="Join point 'method-call(void X$I.m4())' in Type 'Basic3b' (Basic3b.java:10) advised by before advice from 'X' (Basic3b.java:33)"/>
- <message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'X$IIimpl' (Basic3b.java:23) advised by before advice from 'X' (Basic3b.java:33)"/>
- <message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'Basic3b' (Basic3b.java:11) advised by before advice from 'X' (Basic3b.java:33)"/>
- </compile>
- <compile files="Y.java" inpath="ow1.jar" options="-showWeaveInfo -1.8 -Xset:overWeaving=true">
- <message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'Y$IIimpl' (Y.java:10) advised by before advice from 'Y' (Y.java:17)"/>
- <message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'Y$IIimpl' (Y.java:10) advised by before advice from 'X' (ow1.jar!X.class(from Basic3b.java))"/>
- <message kind="weave" text="Join point 'method-call(void X.advice1())' in Type 'X$IIimpl' (Basic3b.java:23) advised by before advice from 'Y' (Y.java:17)"/>
- <message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'X$IIimpl' (Basic3b.java:23) advised by before advice from 'Y' (Y.java:17)"/>
- <message kind="weave" text="Extending interface set for type 'Basic3b' (Basic3b.java) to include 'Y$I' (Y.java)"/>
- <message kind="weave" text="Join point 'method-call(void X.advice1())' in Type 'Basic3b' (Basic3b.java:7) advised by before advice from 'Y' (Y.java:17)"/>
- <message kind="weave" text="Join point 'method-call(void X$I.m2())' in Type 'Basic3b' (Basic3b.java:7) advised by before advice from 'Y' (Y.java:17)"/>
- <message kind="weave" text="Join point 'method-call(void X.advice1())' in Type 'Basic3b' (Basic3b.java:8) advised by before advice from 'Y' (Y.java:17)"/>
- <message kind="weave" text="Join point 'method-call(void X$I.m3())' in Type 'Basic3b' (Basic3b.java:8) advised by before advice from 'Y' (Y.java:17)"/>
- <message kind="weave" text="Join point 'method-call(void X.advice1())' in Type 'Basic3b' (Basic3b.java:9) advised by before advice from 'Y' (Y.java:17)"/>
- <message kind="weave" text="Join point 'method-call(void X$I.m2())' in Type 'Basic3b' (Basic3b.java:9) advised by before advice from 'Y' (Y.java:17)"/>
- <message kind="weave" text="Join point 'method-call(void X.advice1())' in Type 'Basic3b' (Basic3b.java:10) advised by before advice from 'Y' (Y.java:17)"/>
- <message kind="weave" text="Join point 'method-call(void X$I.m4())' in Type 'Basic3b' (Basic3b.java:10) advised by before advice from 'Y' (Y.java:17)"/>
- <message kind="weave" text="Join point 'method-call(void X.advice1())' in Type 'Basic3b' (Basic3b.java:11) advised by before advice from 'Y' (Y.java:17)"/>
- <message kind="weave" text="Join point 'method-call(void java.io.PrintStream.println(java.lang.String))' in Type 'Basic3b' (Basic3b.java:11) advised by before advice from 'Y' (Y.java:17)"/>
- <message kind="weave" text="Join point 'method-call(void X$I.m2())' in Type 'Basic3b' (Basic3b.java:1) advised by before advice from 'Y' (Y.java:17)"/>
- <message kind="weave" text="Join point 'method-call(void X$I.m3())' in Type 'Basic3b' (Basic3b.java:1) advised by before advice from 'Y' (Y.java:17)"/>
- <message kind="weave" text="Join point 'method-call(void X$I.m4())' in Type 'Basic3b' (Basic3b.java:1) advised by before advice from 'Y' (Y.java:17)"/>
- </compile>
- <run class="Basic3b">
- <stdout>
- <!-- BUG: There should be one of each X.IImpl and Y.IImpl, just like for @decm. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=543657#c5. -->
- <line text="X.IImpl.m2() ran"/>
- <line text="X.IImpl.m2() ran"/>
- <line text="Basic3b.main ran"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs193/389678" vm="1.8" title="overweaving">
- <compile files="OverWeave_1/src/Application.java,OverWeave_1/src/MyAspect.aj" options="-showWeaveInfo -1.8" outjar="ow1.jar">
- <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
- <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
- </compile>
- <compile files="OverWeave_2/src/MyAspect2.aj" options="-1.8" outjar="ow2.jar">
- <message kind="warning" text="advice defined in MyAspect2 has not been applied"/>
- </compile>
- <compile inpath="ow1.jar" aspectpath="ow2.jar" options="-1.8 -showWeaveInfo">
- <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
- <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect' (ow1.jar!MyAspect.class:2(from MyAspect.aj))"/>
- <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
- <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect' (ow1.jar!MyAspect.class:2(from MyAspect.aj))"/>
- </compile>
- <run class="Application" classpath="ow2.jar">
- <stdout>
- <line text="MyAspect -> execution(void Application.main(String[]))"/>
- <line text="MyAspect2 -> execution(void Application.main(String[]))"/>
- <line text="MyAspect -> execution(void Application.sayHelloTo(String))"/>
- <line text="MyAspect2 -> execution(void Application.sayHelloTo(String))"/>
- <line text="Hello world!"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs193/389678" vm="1.8" title="overweaving 2">
- <compile files="OverWeave_1/src/Application.java,OverWeave_1/src/MyAspect.aj" options="-showWeaveInfo -1.8" outjar="ow1.jar">
- <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
- <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
- </compile>
- <compile files="OverWeave_2/src/MyAspect2.aj" options="-1.8" outjar="ow2.jar">
- <message kind="warning" text="advice defined in MyAspect2 has not been applied"/>
- </compile>
- <compile inpath="ow1.jar" aspectpath="ow2.jar" options="-showWeaveInfo -1.8 -Xset:overWeaving=true">
- <!-- this is a bit unfortunate, basically MyAspect is not being re-applied because of overweaving
- so we get a message that it hasn't been applied. But really it doesn't need to be. -->
- <message kind="warning" text="advice defined in MyAspect has not been applied"/>
- <!-- These two don't come out because we are using overweaving to apply MyAspect2 where MyAspect is already applied.
- <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect' (ow1.jar!MyAspect.class:2(from MyAspect.aj))"/>
- <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect' (ow1.jar!MyAspect.class:2(from MyAspect.aj))"/>
- -->
- <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
- <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
- </compile>
- <run class="Application" classpath="ow2.jar">
- <stdout>
- <!-- notice order change to overweaving usage -->
- <line text="MyAspect2 -> execution(void Application.main(String[]))"/>
- <line text="MyAspect -> execution(void Application.main(String[]))"/>
- <line text="MyAspect2 -> execution(void Application.sayHelloTo(String))"/>
- <line text="MyAspect -> execution(void Application.sayHelloTo(String))"/>
- <line text="Hello world!"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs193/389678" vm="1.8" title="overweaving 3">
- <compile files="OverWeave_1/src/Application.java,OverWeave_1/src/MyAspect.aj" options="-showWeaveInfo -1.8" outjar="ow1.jar">
- <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
- <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
- </compile>
- <compile files="OverWeave_2/src/MyAspect2.aj" options="-1.8" outjar="ow2.jar">
- <message kind="warning" text="advice defined in MyAspect2 has not been applied"/>
- </compile>
- <compile files="OverWeave_4/src/MyAspect3.aj" options="-1.8" outjar="ow4.jar">
- <message kind="warning" text="advice defined in MyAspect3 has not been applied"/>
- </compile>
- <compile inpath="ow1.jar" aspectpath="ow2.jar" options="-showWeaveInfo -1.8 -Xset:overWeaving=true" outjar="ow3.jar">
- <!-- this is a bit unfortunate, basically MyAspect is not being re-applied because of overweaving
- so we get a message that it hasn't been applied. But really it doesn't need to be. -->
- <message kind="warning" text="advice defined in MyAspect has not been applied"/>
- <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
- <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
- </compile>
- <compile inpath="ow3.jar" aspectpath="ow4.jar" options="-showWeaveInfo -1.8 -Xset:overWeaving=true">
- <!-- this is a bit unfortunate, basically MyAspect is not being re-applied because of overweaving
- so we get a message that it hasn't been applied. But really it doesn't need to be. -->
- <message kind="warning" text="advice defined in MyAspect has not been applied"/>
- <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect3' (ow4.jar!MyAspect3.class:2(from MyAspect3.aj))"/>
- <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect3' (ow4.jar!MyAspect3.class:2(from MyAspect3.aj))"/>
- </compile>
- <run class="Application" classpath="ow2.jar">
- <stdout>
- <line text="MyAspect3 -> execution(void Application.main(String[]))"/>
- <line text="MyAspect2 -> execution(void Application.main(String[]))"/>
- <line text="MyAspect -> execution(void Application.main(String[]))"/>
- <line text="MyAspect3 -> execution(void Application.sayHelloTo(String))"/>
- <line text="MyAspect2 -> execution(void Application.sayHelloTo(String))"/>
- <line text="MyAspect -> execution(void Application.sayHelloTo(String))"/>
- <line text="Hello world!"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs193/389678" vm="1.8" title="overweaving 4">
- <compile files="OverWeave_1/src/Application.java,OverWeave_1/src/MyAspect.aj" options="-showWeaveInfo -1.8" outjar="ow1.jar">
- <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
- <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect' (MyAspect.aj:2)"/>
- </compile>
- <compile files="OverWeave_2/src/MyAspect2.aj" options="-1.8" outjar="ow2.jar">
- <message kind="warning" text="advice defined in MyAspect2 has not been applied"/>
- </compile>
- <compile files="OverWeave_4/src/MyAspect3.aj" options="-1.8" outjar="ow4.jar">
- <message kind="warning" text="advice defined in MyAspect3 has not been applied"/>
- </compile>
- <compile inpath="ow1.jar" aspectpath="ow2.jar" options="-showWeaveInfo -1.8 -Xset:overWeaving=true" outjar="ow3.jar">
- <!-- this is a bit unfortunate, basically MyAspect is not being re-applied because of overweaving
- so we get a message that it hasn't been applied. But really it doesn't need to be. -->
- <message kind="warning" text="advice defined in MyAspect has not been applied"/>
- <message kind="weave" text="Join point 'method-execution(void Application.main(java.lang.String[]))' in Type 'Application' (Application.java:2) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
- <message kind="weave" text="Join point 'method-execution(void Application.sayHelloTo(java.lang.String))' in Type 'Application' (Application.java:6) advised by before advice from 'MyAspect2' (ow2.jar!MyAspect2.class:2(from MyAspect2.aj))"/>
- </compile>
- <compile inpath="ow3.jar" aspectpath="ow4.jar,ow2.jar" options="-1.8">
- <message kind="error" text="the type Application was previously subject to overweaving and after that can only be woven again in overweaving mode"/>
- <message kind="error" text="the type MyAspect was previously subject to overweaving and after that can only be woven again in overweaving mode"/>
- </compile>
- </ajc-test>
-
- <ajc-test dir="bugs193/542682" vm="1.5" title="wildcard enum match in itd">
- <compile files="SimpleEnum.java,SimpleEnum2.java,EnumAspect04.aj" options="-1.5">
- <message kind="warning" line="8" text="enum type SimpleEnum2 matches a declare parents type pattern but is being ignored"/>
- <message kind="warning" line="8" text="enum type SimpleEnum matches a declare parents type pattern but is being ignored"/>
- </compile>
- </ajc-test>
-
- <ajc-test dir="bugs193/542682" title="declare mixin a">
- <compile files="CaseA.java" options="-1.8">
- <message kind="warning" line="1" text="enum type Color matches a declare parents type pattern but is being ignored"/>
- </compile>
- <run class="CaseA">
- <stdout>
- <line text="Delegate factory invoked"/>
- <line text="methodOne running"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs193/isAbstractType" title="is abstract">
- <compile files="Code.java" options="-1.8"/>
- <run class="Code">
- <stdout>
- <line text="execution(void Code.run())"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs193/isAbstractType" title="is abstract - 2">
- <compile files="Code2.java" options="-1.8"/>
- <run class="Code2">
- <stdout>
- <line text="execution(void Helper.run())"/>
- </stdout>
- </run>
- </ajc-test>
-
- <!--
- <ajc-test dir="bugs191/var" title="var 3">
- <compile files="Code3.java" options="-10">
- </compile>
- <run class="Code3">
- <stdout>
- <line text="call(Class java.lang.Object.getClass())"/>
- <line text="class java.lang.String"/>
- </stdout>
- </run>
- </ajc-test>
- -->
-
- </suite>
|