13 lines
340 B
Java
13 lines
340 B
Java
|
/* /nodynamiccopyright/ */
|
||
|
// P references Q, which will require Q to be attributed,
|
||
|
// and therefore generate warnings about Q
|
||
|
// In addition, P will generate warnings of its own
|
||
|
// because it overrides deprecated methods in Q.
|
||
|
|
||
|
class P
|
||
|
{
|
||
|
Q q = new Q() {
|
||
|
void foo() { } // warning: override deprecated method
|
||
|
};
|
||
|
};
|