Mon, 13 Dec 2010 14:56:50 +0000
7006109: Add test library to simplify the task of writing automated type-system tests
Summary: Types.java needs to be more stress-tested
Reviewed-by: jjg
1 /**
2 * @test /nodynamiccopyright/
3 * @bug 6183484
4 * @summary verify -nowarn is the same as -Xlint:none
5 * @compile/ref=NoWarn1.out -XDrawDiagnostics NoWarn.java
6 * @compile/ref=NoWarn2.out -XDrawDiagnostics -nowarn NoWarn.java
7 * @compile/ref=NoWarn2.out -XDrawDiagnostics -Xlint:none NoWarn.java
8 */
10 class NoWarn {
11 void m(Object... args) { }
12 void foo() {
13 m(null);
14 }
15 }