changeset 47216 | 71c04702a3d5 |
parent 22444 | c79ee1e6742f |
47215:4ebc2e2fb97c | 47216:71c04702a3d5 |
---|---|
1 /* |
|
2 * @test /nodynamiccopyright/ |
|
3 * @bug 6394563 |
|
4 * @summary javac ignores -nowarn switch in 1.5.0_06 for deprecation warnings |
|
5 * |
|
6 * @compile/ref=T6394563.note.out -XDrawDiagnostics -nowarn T6394563.java |
|
7 * @compile/ref=T6394563.warn.out -XDrawDiagnostics -Xlint -nowarn T6394563.java |
|
8 */ |
|
9 |
|
10 class T6394563 { |
|
11 void useDeprecated() { |
|
12 deprecated.foo(); |
|
13 } |
|
14 } |
|
15 |
|
16 class deprecated { |
|
17 /** @deprecated */ static void foo() { } |
|
18 } |