20 lines
384 B
Java
20 lines
384 B
Java
|
/*
|
||
|
* @test /nodynamiccopyright/
|
||
|
* @bug 5086088
|
||
|
* @summary check warnings generated when overriding deprecated methods
|
||
|
*
|
||
|
* @compile/ref=Test3.out -XDstdout -XDrawDiagnostics -Xlint:deprecation Test3.java
|
||
|
*/
|
||
|
|
||
|
interface LibInterface {
|
||
|
/** @deprecated */
|
||
|
void m();
|
||
|
}
|
||
|
|
||
|
class LibClass {
|
||
|
public void m() { }
|
||
|
}
|
||
|
|
||
|
class Test3 extends LibClass implements LibInterface {
|
||
|
}
|