diff -r 000000000000 -r 959103a6100f test/tools/javac/depOverrides/annotation/Q.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/depOverrides/annotation/Q.java Wed Apr 27 01:34:52 2016 +0800 @@ -0,0 +1,26 @@ +/* /nodynamiccopyright/ */ +// combinations of methods defined in a base class +// and overridden in subtypes + +// class should compile with warnings as shown + +class Q extends P { + @Deprecated public void pDep_qDep_rDep() { } + @Deprecated public void pDep_qDep_rUnd() { } + @Deprecated public void pDep_qDep_rInh() { } + public void pDep_qUnd_rDep() { } // warn + public void pDep_qUnd_rUnd() { } // warn + public void pDep_qUnd_rInh() { } // warn + // public void pDep_qInh_rDep() { } + // public void pDep_qInh_rUnd() { } + // public void pDep_qInh_rInh() { } + @Deprecated public void pUnd_qDep_rDep() { } + @Deprecated public void pUnd_qDep_rUnd() { } + @Deprecated public void pUnd_qDep_rInh() { } + public void pUnd_qUnd_rDep() { } + public void pUnd_qUnd_rUnd() { } + public void pUnd_qUnd_rInh() { } + // public void pUnd_qInh_rDep() { } + // public void pUnd_qInh_rUnd() { } + // public void pUnd_qInh_rInh() { } +}