123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
- <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
-
- <suite>
-
- <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"></run>
- </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"></run>
- </ajc-test>
-
- <ajc-test dir="bugs1612/pr335810" title="rawtype warning">
- <compile files="One.java" options="-1.5 -warn:+raw -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>
|