2014-02-07 21:43:33 +01:00
|
|
|
/**
|
|
|
|
* @test /nodynamiccopyright/
|
|
|
|
* @bug 8033421
|
|
|
|
* @summary Check that \\@SuppressWarnings works properly when overriding deprecated method.
|
2015-05-21 11:41:04 -07:00
|
|
|
* @modules jdk.compiler/com.sun.tools.javac.api
|
|
|
|
* jdk.compiler/com.sun.tools.javac.code
|
|
|
|
* jdk.compiler/com.sun.tools.javac.file
|
|
|
|
* jdk.compiler/com.sun.tools.javac.tree
|
2014-02-07 21:43:33 +01:00
|
|
|
* @build VerifySuppressWarnings
|
|
|
|
* @compile/ref=Overridden.out -XDrawDiagnostics -Xlint:deprecation Overridden.java
|
|
|
|
* @run main VerifySuppressWarnings Overridden.java
|
|
|
|
*/
|
|
|
|
|
|
|
|
public class Overridden implements Interface {
|
|
|
|
public void test() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Interface {
|
|
|
|
@Deprecated void test();
|
|
|
|
}
|