author | katleman |
Thu, 21 Aug 2014 14:16:14 -0700 | |
changeset 25878 | 6d561031123e |
parent 22444 | c79ee1e6742f |
permissions | -rw-r--r-- |
10 | 1 |
/* |
2 |
* @test /nodynamiccopyright/ |
|
3 |
* @bug 6394563 |
|
4 |
* @summary javac ignores -nowarn switch in 1.5.0_06 for deprecation warnings |
|
5 |
* |
|
6150 | 6 |
* @compile/ref=T6394563.note.out -XDrawDiagnostics -nowarn T6394563.java |
22444
c79ee1e6742f
8031745: Remove unneeded/obsolete -source/-target options in javac tests, part 1
darcy
parents:
6150
diff
changeset
|
7 |
* @compile/ref=T6394563.warn.out -XDrawDiagnostics -Xlint -nowarn T6394563.java |
10 | 8 |
*/ |
9 |
||
10 |
class T6394563 { |
|
11 |
void useDeprecated() { |
|
12 |
deprecated.foo(); |
|
13 |
} |
|
14 |
} |
|
15 |
||
16 |
class deprecated { |
|
17 |
/** @deprecated */ static void foo() { } |
|
18 |
} |