Sfoglia il codice sorgente

166238 "-nowarn doesn't work for load-time weaving" (rbodkin+LISTS@gmail.com)

tags/Root_extensions
mwebster 17 anni fa
parent
commit
c2abdf7c6f

+ 3
- 0
tests/ltw/aop-noxlintfile-nowarn.xml Vedi File

@@ -0,0 +1,3 @@
<aspectj>
<weaver options="-Xlintfile:Xlint-empty.properties -nowarn"/>
</aspectj>

+ 3
- 0
tests/ltw/aop-noxlintfile-warnnone.xml Vedi File

@@ -0,0 +1,3 @@
<aspectj>
<weaver options="-Xlintfile:Xlint-empty.properties -warn:none"/>
</aspectj>

+ 8
- 0
tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java Vedi File

@@ -24,6 +24,14 @@ public class Ajc160Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
public void testGenericFieldNPE_pr165885() { runTest("generic field npe");}
public void testIncorrectOptimizationOfIstore_pr166084() { runTest("incorrect optimization of istore"); }
public void testDualParameterizationsNotAllowed_pr165631() { runTest("dual parameterizations not allowed"); }
public void testSuppressWarnings1_pr166238() {
runTest("Suppress warnings1");
}

public void testSuppressWarnings2_pr166238() {
runTest("Suppress warnings2");
}
/////////////////////////////////////////
public static Test suite() {

+ 24
- 0
tests/src/org/aspectj/systemtest/ajc160/ajc160.xml Vedi File

@@ -24,6 +24,30 @@
<message kind="error" line="13" text="Cannot declare parent B"/>
</compile>
</ajc-test>

<ajc-test dir="ltw"
title="Suppress warnings1"
keywords="xlint, ltw, nowarn, pr166238">
<compile
files="Main.java"
>
</compile>
<run class="Main" ltw="aop-noxlintfile-nowarn.xml">
<stderr/> <!-- no warnings from missing xlint file: they are suppressed -->
</run>
</ajc-test>

<ajc-test dir="ltw"
title="Suppress warnings2"
keywords="xlint, ltw, nowarn, pr166238">
<compile
files="Main.java"
>
</compile>
<run class="Main" ltw="aop-noxlintfile-warnnone.xml">
<stderr/> <!-- no warnings from missing xlint file: they are suppressed -->
</run>
</ajc-test>
<!-- second section - need a 1.6 vm -->

Loading…
Annulla
Salva