jdk-24/test/langtools/tools/javac/mandatoryWarnings/deprecated/P.java
2017-09-12 19:03:39 +02:00

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
};
};