Explorar el Código

148508, 265418: tests and fixes: array and varargs subtype patterns

tags/pre268419
aclement hace 15 años
padre
commit
57dbf69673

+ 9
- 1
tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java Ver fichero

@@ -32,10 +32,18 @@ import org.aspectj.testing.XMLBasedAjcTestCase;

public class Ajc164Tests extends org.aspectj.testing.XMLBasedAjcTestCase {

public void testParserProblemSubArrayPatterns_pr148508() {
runTest("parser problem for array subtypes");
}

public void testVarargs_pr265418() {
runTest("varargs");
}

public void testIncorrectDateResolution_pr265360() {
runTest("incorrect resolution of Date");
}

public void testDualPreClinit_pr233032() {
runTest("dual preClinit");
}

+ 22
- 1
tests/src/org/aspectj/systemtest/ajc164/ajc164.xml Ver fichero

@@ -2,13 +2,34 @@

<suite>
<ajc-test dir="bugs164/pr265418" title="varargs">
<compile files="A.java" options="-1.5"/>
<run class="A">
<stdout>
<line text="varargs call(void A.a(Object[]))"/>
<line text="varargs call(void A.b(String[]))"/>
<line text="varargs call(void A.c(Integer[]))"/>
<line text="arrays call(void A.d(Object[]))"/>
<line text="arrays call(void A.e(String[]))"/>
<line text="arrays call(void A.f(Integer[]))"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="bugs164" title="parser problem for array subtypes">
<compile files="PR148508.java"/>
<run class="PR148508">
</run>
</ajc-test>
<ajc-test dir="bugs164/pr265360" title="incorrect resolution of Date">
<compile files="Foo.java Main.java" options="-1.5">
<message kind="warning" text="no match for this type name: Date "/>
<message kind="warning" test="advice defined in"/>
</compile>
</ajc-test>
<ajc-test dir="bugs164/pr233032" title="dual preClinit">
<compile files="A.java" options="-1.5"/>
<run class="A"/>

Cargando…
Cancelar
Guardar