123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
-
- <suite>
-
- <ajc-test dir="bugs1611/pr336880" title="bounds check confusion">
- <compile files="First.java" options="-1.5"/>
- <compile files="Second.java" aspectpath="." options="-1.5"/>
- </ajc-test>
-
- <ajc-test dir="bugs1611/pr336774" title="clashing itds">
- <compile files="First.java" options="-1.5"/>
- <compile files="Test.java" aspectpath="." options="-1.5"/>
- </ajc-test>
-
- <ajc-test dir="bugs1611/pr336745" title="incorrect signature">
- <compile files="Foo.aj" options="-1.5"/>
- </ajc-test>
-
- <ajc-test dir="bugs1611/pr336471" title="esjp">
- <compile files="Tester.aj" options="-1.5 -Xset:targetRuntime1_6_10=true"/>
- <run class="Tester">
- <stdout>
- <line text="execution(void Tester.main(String[]))"/>
- <line text="execution(void Foo.run())"/>
- <line text="hello"/>
- </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>
-
-
- <ajc-test dir="bugs1611/pr336136" title="itit - 2">
- <compile files="Country_Roo_Op4j2.java" options="-1.5">
- <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="Country cannot be resolved to a type" line="11"/>
- <message kind="error" text="Function cannot be resolved to a type" line="11"/>
- <message kind="error" text="Get cannot be resolved" line="11"/>
- <message kind="error" text="Types cannot be resolved" line="11"/>
- <message kind="error" text="can't determine modifiers of missing type Country_Roo_Op4j2$Keys"/>
- </compile>"
- </ajc-test>
-
-
- <ajc-test dir="bugs1611/pr335682" title="pr335682">
- <compile inpath="foo.jar" options="-1.4" outjar="bar.jar"/>
- </ajc-test>
-
- <ajc-test dir="bugs1611/pr335682" title="pr335682 - 2">
- <compile inpath="case2.jar" options="-1.4" outjar="bar.jar"/>
- </ajc-test>
-
- <ajc-test dir="bugs1611/pr335682" title="pr335682 - 3">
- <compile inpath="case3.jar" options="-1.4" outjar="bar.jar"/>
- </ajc-test>
-
- <ajc-test dir="bugs1611/pr335682" title="pr335682 - 5">
- <compile inpath="case5.jar" options="-1.4" outjar="bar.jar"/>
- </ajc-test>
-
- <ajc-test dir="bugs1611/pr335783" title="pr335783">
- <compile files="A.java" options="-1.5"/>
- <compile files="X.aj" options="-1.5 -Xlint:ignore" />
- <run class="A" ltw="aop.xml">
- <stdout>
- <line text="OK"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1611/pr333274" title="anno style advice chain">
- <compile files="ma/Annotation1.java ma/aspect1/Aspect1.java ma/aspect3/Aspect3.java ma/Main.java ma/Precedence.java" options="-1.5"/>
- <run class="ma.Main">
- <stdout>
- <line text=">In Aspect1"/>
- <line text=">In Aspect3"/>
- <line text="Method call"/>
- <line text="<In Aspect3"/>
- <line text="=In Aspect1"/>
- <line text=">In Aspect3"/>
- <line text="Method call"/>
- <line text="<In Aspect3"/>
- <line text="<In Aspect1"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1611/pr333274" title="code style advice chain - no inline">
- <compile files="ma2/Annotation1.java ma2/aspect1/Aspect1.java ma2/aspect3/Aspect3.java ma2/Main.java ma2/Precedence.java" options="-1.5 -XnoInline"/>
- <run class="ma2.Main">
- <stdout>
- <line text=">In Aspect1"/>
- <line text=">In Aspect3"/>
- <line text="Method call"/>
- <line text="<In Aspect3"/>
- <line text="=In Aspect1"/>
- <line text=">In Aspect3"/>
- <line text="Method call"/>
- <line text="<In Aspect3"/>
- <line text="<In Aspect1"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1611/pr333274" title="code style advice chain">
- <compile files="ma2/Annotation1.java ma2/aspect1/Aspect1.java ma2/aspect3/Aspect3.java ma2/Main.java ma2/Precedence.java" options="-1.5 -XnoInline"/>
- <run class="ma2.Main">
- <stdout>
- <line text=">In Aspect1"/>
- <line text=">In Aspect3"/>
- <line text="Method call"/>
- <line text="<In Aspect3"/>
- <line text="=In Aspect1"/>
- <line text=">In Aspect3"/>
- <line text="Method call"/>
- <line text="<In Aspect3"/>
- <line text="<In Aspect1"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1611/pr328840" title="pr328840">
- <compile files="Wibble.aj" options="-1.5 -showWeaveInfo">
- <message kind="weave" text="Join point 'field-get(XX Song.i)' in Type 'Song' (Wibble.aj:26) advised by before advice from 'Wibble' (Wibble.aj:9)"/>
- <message kind="weave" text="'XX i' of type 'Song' (Wibble.aj) is annotated with @Foo field annotation from 'Wibble' (Wibble.aj:7)"/>
- </compile>
- <run class="Wibble">
- <stdout>
- <line text="@Foo()"/>
- </stdout></run>
- </ajc-test>
-
- <ajc-test dir="bugs1611/pr332388" title="pr332388">
- <compile files="M.java" outjar="M.jar" options="-1.5"/>
- <compile files="A.java B.java" classpath="M.jar" outjar="AB.jar" options="-1.5"/>
- <compile files="MyAspect.java" outjar="aspects.jar" options="-1.5"/>
- <compile files="" aspectpath="aspects.jar" inpath="AB.jar" options="-1.5">
- <message kind="error" text="Unable to find type for generic bound. Missing type is M [Xlint:cantFindType]"/>
- </compile>
- </ajc-test>
-
- <ajc-test dir="bugs1611/pr333469" title="pr333469">
- <compile files="MyList.java MyList_Serializable.java" options="-1.5"/>
- <run class="MyList">
- <stdout><line text="ser=1"/></stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1611/pr332388_2" title="pr332388 - 2">
- <compile files="M.java" outjar="M.jar" options="-1.5"/>
- <compile files="A.java" classpath="M.jar" outjar="A.jar" options="-1.5"/>
- <compile files="MyAspect.java" outjar="aspects.jar" options="-1.5"/>
- <compile files="" aspectpath="aspects.jar" inpath="A.jar" options="-1.5">
- <message kind="error" text="Unable to find type (for bound): M [Xlint:cantFindType]"/>
- </compile>
- </ajc-test>
-
- </suite>
|