test/tools/javac/T6394563.java

changeset 611
4172cfff05f0
parent 1
9a66ca7c79fa
child 2525
2eb010b6cb22
equal deleted inserted replaced
610:3640b60bd0f6 611:4172cfff05f0
1 /* 1 /*
2 * @test /nodynamiccopyright/ 2 * @test /nodynamiccopyright/
3 * @bug 6394563 3 * @bug 6394563
4 * @summary javac ignores -nowarn switch in 1.5.0_06 for deprecation warnings 4 * @summary javac ignores -nowarn switch in 1.5.0_06 for deprecation warnings
5 * 5 *
6 * @compile/ref=T6394563.note.out -XDstdout -XDrawDiagnostics -nowarn T6394563.java 6 * @compile/ref=T6394563.note.out -XDrawDiagnostics -nowarn T6394563.java
7 * @compile/ref=T6394563.note.out -XDstdout -XDrawDiagnostics -nowarn -source 1.5 T6394563.java 7 * @compile/ref=T6394563.note.out -XDrawDiagnostics -nowarn -source 1.5 T6394563.java
8 * @compile/ref=T6394563.empty.out -XDstdout -XDrawDiagnostics -nowarn -source 1.4 T6394563.java 8 * @compile/ref=T6394563.empty.out -XDrawDiagnostics -nowarn -source 1.4 T6394563.java
9 * 9 *
10 * @compile/ref=T6394563.warn.out -XDstdout -XDrawDiagnostics -Xlint -nowarn T6394563.java 10 * @compile/ref=T6394563.warn.out -XDrawDiagnostics -Xlint -nowarn T6394563.java
11 * @compile/ref=T6394563.warn.out -XDstdout -XDrawDiagnostics -Xlint -nowarn -source 1.5 T6394563.java 11 * @compile/ref=T6394563.warn.out -XDrawDiagnostics -Xlint -nowarn -source 1.5 T6394563.java
12 * @compile/ref=T6394563.empty.out -XDstdout -XDrawDiagnostics -Xlint -nowarn -source 1.4 T6394563.java 12 * @compile/ref=T6394563.empty.out -XDrawDiagnostics -Xlint -nowarn -source 1.4 T6394563.java
13 */ 13 */
14 14
15 class T6394563 { 15 class T6394563 {
16 void useDeprecated() { 16 void useDeprecated() {
17 deprecated.foo(); 17 deprecated.foo();

mercurial