123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755 |
- <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
-
- <suite>
-
- <ajc-test dir="bugs1612/pr327141" title="classcast">
- <compile files="AspectWithConstant.aj" options="-1.5"/>
- <run class="AspectWithConstant">
- <stdout>
- <line text="MAX=9"/>
- <line text="@AspectWithConstant$Loggable()"/>
- </stdout></run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/xmldefs" title="xml defined advice">
- <compile files="Hello.java JavaHelper.java"/>
- <run class="Hello" ltw="aop.xml">
- <stdout>
- <line text="Hello"/>
- <line text="in advice"/>
- <line text="World"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 2">
- <compile files="Hello.java JavaHelper.java"/>
- <run class="Hello" ltw="aop2.xml">
- <stdout>
- <line text="Hello"/>
- <line text="World"/>
- </stdout>
- <stderr>
- <line text="info AspectJ Weaver"/>
- <line text="info register classloader"/>
- <line text="info using config"/>
- <line text="info define aspect"/>
- <line text="error Class to invoke cannot be found: 'com.DoesNotExist'"/>
- <line text="info weaver operating"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 3">
- <compile files="Hello.java JavaHelper.java"/>
- <run class="Hello" ltw="aop3.xml">
- <stdout>
- <line text="Hello"/>
- <line text="World"/>
- </stdout>
- <stderr>
- <line text="info AspectJ Weaver"/>
- <line text="info register classloader"/>
- <line text="info using config"/>
- <line text="info define aspect"/>
- <line text="error Cannot find type specified as parameter: 'String' from signature '(String)'"/>
- <line text="info weaver operating"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 4">
- <compile files="Hello.java JavaHelper.java"/>
- <run class="Hello" ltw="aop4.xml">
- <stdout>
- <line text="Hello"/>
- <line text="World"/>
- </stdout>
- <stderr>
- <line text="info AspectJ Weaver"/>
- <line text="info register classloader"/>
- <line text="info using config"/>
- <line text="info define aspect"/>
- <line text="error Cannot find type specified as parameter: 'java.lang.String:List' from signature '(java.lang.String:List)'"/>
- <line text="info weaver operating"/>
- </stderr>
- </run>
- </ajc-test>
-
-
- <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 5">
- <compile files="Hello2.java JavaHelper.java"/>
- <run class="Hello2" ltw="aop5.xml">
- <stdout>
- <line text="hello"/>
- <line text="in advice: s=world"/>
- <line text="world"/>
- </stdout>
- </run>
- </ajc-test>
-
-
- <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 6">
- <compile files="Hello2.java JavaHelper.java"/>
- <run class="Hello2" ltw="aop6.xml">
- <stdout>
- <line text="hello"/>
- <line text="in advice: s=world"/>
- <line text="world"/>
- <line text="in advice3: s=world"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 7">
- <compile files="Hello2.java JavaHelper.java"/>
- <run class="Hello2" ltw="aop7.xml">
- <stdout>
- <line text="hello"/>
- <line text="in advice4: s=world at execution(int Hello2.say2(String))"/>
- <line text="world"/>
- <line text="in advice5: s=world at execution(int Hello2.say2(String))"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 8">
- <compile files="Hello2.java JavaHelper.java"/>
- <run class="Hello2" ltw="aop8.xml">
- <stdout>
- <line text="hello"/>
- <line text="in advice6: s=world at execution(int Hello2.say2(String))"/>
- <line text="world"/>
- <line text="in advice7: s=world at execution(int Hello2.say2(String))"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 9">
- <compile files="Hello2.java JavaHelper.java"/>
- <run class="Hello2" ltw="aop9.xml">
- <stdout>
- <line text="in around advice: s=hello at execution(void Hello2.say1(String))"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 10">
- <compile files="Hello2.java JavaHelper.java"/>
- <run class="Hello2" ltw="aop10.xml">
- <stdout>
- <line text="hello"/>
- <line text="in around2 advice: s=world at execution(int Hello2.say2(String))"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 11">
- <compile files="Hello2.java JavaHelper.java"/>
- <run class="Hello2" ltw="aop11.xml">
- <stdout>
- <line text="hello"/>
- <line text="abcde"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 12">
- <compile files="Hello3.java JavaHelper.java"/>
- <run class="Hello3" ltw="aop12.xml">
- <stdout>
- <line text="hello"/>
- <line text="around4 running"/>
- <line text="abcde"/>
- <line text="from say2=xyz"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/xmldefs" title="xml defined advice 13">
- <compile files="Hello2.java JavaHelper2.java"/>
- <run class="Hello2" ltw="aop13.xml">
- <stdout>
- <line text="in advice"/>
- <line text="hello"/>
- <line text="in advice"/>
- <line text="world"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr354470" title="perthis too pervasive">
- <compile files="Code.java" options="-1.5"/>
- <run class="Code">
- <stdout>
- <line text="AAA"/>
- <line text="BBB"/>
- <line text="CCC"/>
- <line text="interface Code$ajcMightHaveAspect"/>
- <line text="private transient Code CCC.ajc$Code$perObjectField"/>
- </stdout></run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr354470" title="perthis too pervasive 2">
- <compile files="Code2.java" options="-1.5"/>
- <run class="Code2">
- <stdout>
- <line text="execution(void CCC.m())"/>
- </stdout></run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr354470" title="perthis too pervasive 3">
- <compile files="Code3.java" options="-1.5"/>
- <run class="Code3">
- <stdout>
- <line text="execution(void CCC.m())"/>
- </stdout></run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/prx" title="class reference in annotation value">
- <compile files="C.java" options="-1.5 -showWeaveInfo">
- <message kind="weave" text="Join point 'field-get(int C.i)' in Type 'C' (C.java:17) advised by before advice from 'X' (C.java:22)"/>
- </compile>
- <run class="C">
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/prx" title="annotation values not equal">
- <compile files="D.java" options="-1.5 -showWeaveInfo">
- <message kind="weave" text="Join point 'field-get(int D.i)' in Type 'D' (D.java:20) advised by before advice from 'X' (D.java:26)"/>
- <message kind="weave" text="Join point 'field-get(int D.j)' in Type 'D' (D.java:21) advised by before advice from 'X' (D.java:26)"/>
- </compile>
- <run class="D">
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/prx" title="class reference in annotation value 3">
- <compile files="E.java" options="-1.5 -showWeaveInfo">
- <message kind="weave" text="Join point 'field-get(int E.i)' in Type 'E' (E.java:17) advised by before advice from 'X' (E.java:22)"/>
- </compile>
- <run class="E">
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/prx" title="annotation values not equal 2">
- <compile files="F.java" options="-1.5 -showWeaveInfo">
- <message kind="weave" text="Join point 'field-get(int F.i)' in Type 'F' (F.java:20) advised by before advice from 'X' (F.java:26)"/>
- <message kind="weave" text="Join point 'field-get(int F.j)' in Type 'F' (F.java:21) advised by before advice from 'X' (F.java:26)"/>
- </compile>
- <run class="F">
- </run>
- </ajc-test>
-
-
- <ajc-test dir="bugs1612/prx" title="class reference in annotation value - invalid typename">
- <compile files="G.java" options="-1.5">
- <message kind="error" text="Unable to resolve type 'Foo.class' specified for value 'value'"/>
- </compile>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr356612" title="annotation field binding optimization">
- <compile files="AnnoBinding.java" options="-1.5"/>
- <run class="AnnoBinding">
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr356612" title="annotation field binding optimization - 2">
- <compile files="AnnoBinding2.java" options="-1.5"/>
- <run class="AnnoBinding2">
- <stdout>
- <line text="get(int AnnoBinding2.field1) @Marker(message=foo)" vm="1.2,1.3,1.4,1.5,1.6,1.7,1.8"/>
- <line text="get(int AnnoBinding2.field1) @Marker(message="foo")" vm="9+"/>
- <line text="get(int AnnoBinding2.field2) @Marker(message=bar)" vm="1.2,1.3,1.4,1.5,1.6,1.7,1.8"/>
- <line text="get(int AnnoBinding2.field2) @Marker(message="bar")" vm="9+"/>
- <line text="2 ajc$anno$NNN fields"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr354683" title="itd split compilation">
- <compile files="util/CommonData.java util/CommonDataImpl.java util/CommonDataImplementation.aj util/DerivedCommonDataInterface.java util/DerivedCommonDataInterfaceImpl.java util/DerivedCommonDataInterfaceImplementation.aj" options="-1.5" outjar="code.jar"/>
- <compile files="main/AbstractBaseClass.java main/DerivedClass.java main/Whatever.java " options="-1.5" aspectpath="code.jar"/>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 1">
- <compile files="One.java" options="-1.5"/>
- <run class="One">
- <stdout>
- <line text="In instance check method doit()"/>
- <line text="In advice()"/>
- <line text="Method m() running"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 2">
- <compile files="Two.java" options="-1.5"/>
- <run class="Two">
- <stdout>
- <line text="In instance check method, count=1 so doit returns false"/>
- <line text="Method m() running"/>
- <line text="In instance check method, count=2 so doit returns true"/>
- <line text="In advice()"/>
- <line text="Method m() running"/>
- <line text="In instance check method, count=3 so doit returns false"/>
- <line text="Method m() running"/>
- <line text="In instance check method, count=4 so doit returns true"/>
- <line text="In advice()"/>
- <line text="Method m() running"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 3">
- <compile files="Three.java" options="-1.5"/>
- <run class="Three">
- <stdout>
- <line text="Method m() running"/>
- <line text="In instance check method, count=1 so doit returns false"/>
- <line text="Method m() running"/>
- <line text="In instance check method, count=2 so doit returns true"/>
- <line text="In advice()"/>
- <line text="Method m() running"/>
- <line text="In instance check method, count=3 so doit returns false"/>
- <line text="Method m() running"/>
- <line text="In instance check method, count=4 so doit returns true"/>
- <line text="In advice()"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 4">
- <compile files="Four.java" options="-1.5"/>
- <run class="Four">
- <stdout>
- <line text="In instance check method doit()"/>
- <line text="In advice() execution(void Four.m())"/>
- <line text="Method m() running"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 5">
- <compile files="Five.java" options="-1.5"/>
- <run class="Five">
- <stdout>
- <line text="In instance check method doit()"/>
- <line text="In advice() arg0=abc"/>
- <line text="Method m() running"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 6">
- <compile files="Six.java" options="-1.5"/>
- <run class="Six">
- <stdout>
- <line text="In instance check method doit()"/>
- <line text="In advice() execution(void Six.main(String[]))"/>
- <line text="Method m() running"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 7">
- <compile files="Seven.java" options="-1.5"/>
- <run class="Seven">
- <stdout>
- <line text="In instance check method doit()"/>
- <line text="In advice() call(void Seven.m()) execution(void Seven.main(String[]))"/>
- <line text="Method m() running"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 8">
- <compile files="Eight.java" options="-1.5"/>
- <run class="Eight">
- <stdout>
- <line text="in doit(): class=X"/>
- <line text="In advice()"/>
- <line text="Method m() running"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 9">
- <compile files="Nine.java" options="-1.5"/>
- <run class="Nine">
- <stdout>
- <line text="in doit(): class=X"/>
- <line text="In advice()"/>
- <line text="Method m() running"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 10">
- <compile files="Ten.java" options="-1.5"/>
- <run class="com.foo.bar.Ten">
- <stdout>
- <line text="In instance check method doit() class=com.foo.bar.X"/>
- <line text="In advice()"/>
- <line text="Method m() running"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 11">
- <compile files="Eleven.java" options="-1.5">
- <message kind="error" text="thisAspectInstance can only be used inside an if() clause for singleton aspects (compiler limitation)"/>
- </compile>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 12">
- <compile files="Twelve.java" options="-1.5"/>
- <run class="Twelve">
- <stdout>
- <line text="In instance check method doit()"/>
- <line text="In advice() arg=abc tjpsp=execution(void Twelve.m(String))"/>
- <line text="Method m() running"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 13">
- <compile files="Thirteen.java" options="-1.5"/>
- <run class="Thirteen">
- <stdout>
- <line text="instance is X"/>
- <line text="In advice() arg=abc tjpsp=execution(void Thirteen.m(String))"/>
- <line text="Method m() running"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 14">
- <compile files="Fourteen.java" options="-1.5"/>
- <run class="Fourteen">
- <stdout>
- <line text="instance is X"/>
- <line text="In advice()"/>
- <line text="Method m() running"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 15">
- <compile files="Fifteen.java" options="-1.5"/>
- <run class="Fifteen">
- <stdout>
- <line text="in doit(): class=X"/>
- <line text="In advice()"/>
- <line text="Method m() running"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/doubleITDF" title="double itdf">
- <compile files="A.java" options="-1.7"/>
- <run class="A">
- <stdout>
- <line text="AA"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/verify" title="verify perthis">
- <compile files="Runner.aj" inpath="code.jar" classpath="groovy-1.8.0.jar,asm-3.2.jar" options="-1.6 -Xset:generateStackMaps=true"/>
- <run class="Runner">
- <stdout>
- <line text="AA"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr353936" title="local variable tables">
- <compile files="Code.java" options="-1.5"/>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr352363" title="empty pattern">
- <compile files="Code.java" options="-1.5">
- <message line="12" kind="warning" text="name is empty1"/>
- <message line="13" kind="warning" text="name is empty2"/>
- </compile>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr351592" title="generics issue">
- <compile files="Test.java Fib.java FibCaching.aj Caching.aj" options="-1.5"/>
- <run class="caching.Test"/>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr351592" title="generics issue - 2">
- <compile files="Test.java Fib.java FibCaching.aj Caching.aj" options="-1.5"/>
- <run class="caching.Test"/>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr350800" title="generics npe">
- <compile files="AbstractAdapter.java AbstractProbingAspect.java Adapter.java ProbingAspect.java" options="-1.5"/>
- <!-- run class="com.example.MyAspectTest" -->
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr350800_2" title="generics npe - code">
- <compile files="AbstractAdapter.java AbstractProbingAspect.java Adapter.java ProbingAspect.java" options="-1.5"/>
- <!-- run class="com.example.MyAspectTest" -->
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr350800_3" title="generics npe - 3">
- <compile files="AbstractAdapter.java AbstractProbingAspect.java Adapter.java ProbingAspect.java" options="-1.5"/>
- <run class="test.aop.Adapter">
- <stdout>
- <line text=">hello"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr349961" title="ordering">
- <compile files="MyParameterAnnotation.java MyAspect.java MyAspectTest.java A.java ABean.java" options="-1.5"/>
- <run class="com.example.MyAspectTest">
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr349961" title="ordering - 2">
- <compile files="MyParameterAnnotation.java MyAspect.java MyAspectTest.java ABean.java A.java" options="-1.5"/>
- <run class="com.example.MyAspectTest">
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr347395" title="verifyerror - inline">
- <compile files="Target.java Task.java TaskHistoryAspect.aj TaskModification.java" options="-1.5"/>
- <run class="xxx.util.Target">
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr349398" title="duplicate methods">
- <compile files="DataGenerator.java CacheAspect.java DataGeneratorCacheAspect.java DataGeneratorTest.java" options="-1.5"/>
- <run class="DataGeneratorTest">
- </run>
- </ajc-test>
-
-
- <ajc-test dir="bugs1612/pr347684" title="binding ints">
- <compile files="BindingInts.java" options="-1.5"/>
- <run class="BindingInts">
- <stdout>
- <line text="execution(void BindingInts.a()) 37"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr347684" title="binding ints - 2">
- <compile files="BindingInts2.java" options="-1.5"/>
- <run class="BindingInts2">
- <stdout>
- <line text="execution(void BindingInts2.a()) 99"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr347684" title="binding ints - 3">
- <compile files="BindingInts3.java" options="-1.5"/>
- <run class="BindingInts3">
- <stdout>
- <line text="execution(void BindingInts3.a()) abc"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr347684" title="binding ints - 4">
- <compile files="BindingInts4.java" options="-1.5"/>
- <run class="BindingInts4">
- <stdout>
- <line text="execution(void BindingInts4.a()) 37 48"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr347684" title="binding ints - 5">
- <compile files="BindingInts5.java" options="-1.5"/>
- <run class="BindingInts5">
- <stdout>
- <line text="execution(void BindingInts5.a()) 37"/>
- </stdout>
- </run>
- </ajc-test>
-
-
- <ajc-test dir="bugs1612/pr347684" title="binding ints - 6">
- <compile files="BindingInts6.java" options="-1.5"/>
- <run class="BindingInts6">
- <stdout>
- <line text="execution(void BindingInts6.a()) 37 1 99"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr345515" title="anno copying">
- <compile files="Code.java" options="-1.5"/>
- <run class="Code"/>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr327867" title="synthetic methods">
- <compile files="Foo.java" options="-1.5 -showWeaveInfo">
- <message kind="weave" text="Join point 'method-execution(void Foo.main(java.lang.String[]))' in Type 'Foo' (Foo.java:3) advised by before advice from 'X' (Foo.java:17)"/>
- <message kind="weave" text="Join point 'method-execution(void Foo.m())' in Type 'Foo' (Foo.java:7) advised by before advice from 'X' (Foo.java:17)"/>
- </compile>
- <run class="Foo"/>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr345172" title="incorrect annos">
- <compile files="InterType.java" options="-1.5 -showWeaveInfo">
- <message kind="weave" text="Join point 'method-execution(void InterType$InterTypeIfc.m1(int))' in Type 'InterType' (InterType.java:21) advised by around advice from 'InterType$AroundMethod' (InterType.java:12)"/>
- <!--
- <message kind="weave" text="Join point 'method-execution(void InterType$InterTypeIfc.m1(int, int))' in Type 'InterType' (InterType.java:24) advised by around advice from 'InterType$AroundMethod' (InterType.java:12)"/>
- <message kind="weave" text="Join point 'method-execution(void InterType.m1(int))' in Type 'InterType' (InterType.java:28) advised by around advice from 'InterType$AroundMethod' (InterType.java:12)"/>
- -->
- <message kind="weave" text="Type 'InterType$InterTypeIfc' (InterType.java) has intertyped method from 'InterType' (InterType.java:'void InterType$InterTypeIfc.m1(int)')"/>
- <message kind="weave" text="Type 'InterType$InterTypeIfc' (InterType.java) has intertyped method from 'InterType' (InterType.java:'void InterType$InterTypeIfc.m1(int, int)')"/>
- </compile>
- <run class="InterType"/>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr345172" title="incorrect annos 2">
- <compile files="InterType2.java" options="-1.5">
- </compile>
- <run class="InterType2">
- <stdout>
- <line text="execution(void InterType2.InterTypeIfc.m1(int))"/>
- </stdout></run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr345172" title="incorrect annos 3">
- <compile files="InterType3.java" options="-1.5">
- </compile>
- <run class="InterType3">
- <stdout>
- <line text="execution(void InterType3.InterTypeIfc.m1(int, String))"/>
- </stdout></run>
- </ajc-test>
-
-
-
-
- <ajc-test dir="bugs1612/pr328099" title="signed jar ltw">
- <compile files="X.java" classpath="code.jar"/>
- <run class="foo.bar.FooLaunch" ltw="aop.xml" classpath="$sandbox/code.jar">
- <stdout>
- <line text="pre...Foo.bar()...post"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr315398" title="verifyerror">
- <compile files="Code.java" options="-1.5">
- </compile>
- <run class="Code">
- <stdout>
- <line text="1"/>
- <line text="advice"/>
- <line text="2"/>
- </stdout></run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr315398" title="verifyerror - 2">
- <compile files="Code2.java" options="-1.5">
- </compile>
- <run class="Code2"/>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr335810" title="rawtype warning">
- <compile files="One.java" options="-1.5 -warn:+raw -warn:+unchecked -warn:+warningToken">
- </compile>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr327134" title="rawtype pointcut">
- <compile files="Code.java" options="-1.5 -warn:+raw -warn:+warningToken">
- </compile>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr344005" title="decp generics">
- <compile files="Anno.java Types.java Azpect.java" options="-1.5 -showWeaveInfo">
- <message kind="weave" text="XX"/>
- </compile>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr343051" title="illegalaccesserror">
- <compile files="Code.java Code2.java Azpect.java" options="-1.5"/>
- <run class="p.Code">
- <stdout>
- <line text="abc"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr339974" title="itit npe">
- <compile files="City.java TrafficCalculator.java" options="-1.5">
- <message kind="error" text="The nested type TrafficCalculator cannot hide an enclosing type"/>
- </compile>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr342605" title="noimporterror">
- <compile files="Code.java" options="-1.5 -noImportError"/>
- <run class="Code"/>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr342323" title="clashing local types">
- <compile files="Runner.java Bean.java Azpect.java" options="-1.5"/>
- <run class="ppp.Runner">
- <stdout>
- <line text="Calling regular method"/>
- <line text="class"/>
- <line text="Calling itd method"/>
- <line text="aspect foo"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr338175" title="itit">
- <compile files="pack1/Aspect.java pack2/Java.java pack2/Java2.java" options="-1.5">
- <message kind="error" text="Duplicate nested type ITIT"/>
- <message kind="error" text="can't determine modifiers"/>
- </compile>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr292239" title="throws clause">
- <compile files="Code.java" options="-1.5 -showWeaveInfo">
- <message kind="weave" text="Join point 'method-execution(void mypackage.Code.n())' in Type 'mypackage.Code' (Code.java:19) advised by afterThrowing advice from 'mypackage.Azpect' (Code.java:9)"/>
- </compile>
- <run class="mypackage.Code">
- <stdout>
- <line text="caught it"/>
- <line text="done"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr292239" title="throws clause - 2">
- <compile files="Code2.java" options="-1.5 -showWeaveInfo">
- <message kind="weave" text="Join point 'method-execution(void mypackage.Code2.n2())' in Type 'mypackage.Code2' (Code2.java:17) advised by afterThrowing advice from 'mypackage.Azpect' (Code2.java:7)"/>
- </compile>
- <run class="mypackage.Code2">
- <stdout>
- <line text="caught it: execution(void mypackage.Code2.n2())"/>
- <line text="done"/>
- </stdout>
- </run>
- </ajc-test>
- <!--
-
-
- <ajc-test dir="bugs1611/pr336136" title="itit">
- <compile files="Country_Roo_Op4j.java">
- <message kind="error" text="The import com.foo cannot be resolved" line="1"/>
- <message kind="error" text="The import org.javaruntype cannot be resolved" line="3"/>
- <message kind="error" text="The import org.op4j cannot be resolved" line="4"/>
- <message kind="error" text="The import org.op4j cannot be resolved" line="5"/>
- <message kind="error" text="Country cannot be resolved to a type" line="9"/>
- <message kind="error" text="Function cannot be resolved to a type" line="11"/>
- <message kind="error" text="can't determine modifiers of missing type Country_Roo_Op4j$Keys"/>
- </compile>"
- </ajc-test>
-
- -->
-
-
- </suite>
|