jdk-24/test/langtools/tools/javac/warnings/suppress/Overridden.java
2017-09-12 19:03:39 +02:00

21 lines
646 B
Java

/**
* @test /nodynamiccopyright/
* @bug 8033421
* @summary Check that \\@SuppressWarnings works properly when overriding deprecated method.
* @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
* @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();
}