2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-01-09 06:01:20 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 6229758
|
|
|
|
* @summary deprecatedNOT! is
|
|
|
|
* @author Peter von der Ah\u00e9
|
|
|
|
* @compile -Xlint:deprecation DeprecatedYES.java
|
2015-01-09 06:01:20 +00:00
|
|
|
* @compile/fail/ref=DeprecatedYES.out -XDrawDiagnostics -Werror -Xlint:deprecation DeprecatedYES.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class A {
|
|
|
|
/**@deprecated*/
|
|
|
|
void foo() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class B {
|
|
|
|
void bar(A a) {
|
|
|
|
a.foo();
|
|
|
|
}
|
|
|
|
}
|