c0d767f6f1
When the overrides deprecated method warning is being reported, need to do that in the lint context of the method. Reviewed-by: vromero
17 lines
447 B
Java
17 lines
447 B
Java
/**
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8033421
|
|
* @summary Check that \\@SuppressWarnings works properly when overriding deprecated method.
|
|
* @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();
|
|
}
|