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 }