2007-12-01 00:00:00 +00:00
|
|
|
/*
|
|
|
|
* @test /nodynamiccopyright/
|
|
|
|
* @bug 5086088
|
|
|
|
* @summary check warnings generated when overriding deprecated methods
|
|
|
|
*
|
2010-07-26 21:18:45 +00:00
|
|
|
* @compile/ref=Test3.out -XDrawDiagnostics -Xlint:deprecation Test3.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
interface LibInterface {
|
|
|
|
@Deprecated
|
|
|
|
void m();
|
|
|
|
}
|
|
|
|
|
|
|
|
class LibClass {
|
|
|
|
public void m() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
class Test3 extends LibClass implements LibInterface {
|
|
|
|
}
|