1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/depOverrides/annotation/B.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,26 @@ 1.4 +/* /nodynamiccopyright/ */ 1.5 +// combinations of methods defined in an interface 1.6 +// and overridden in subtypes 1.7 + 1.8 +// class should compile with deprecation warnings as shown 1.9 + 1.10 +abstract class B extends A { 1.11 + @Deprecated public void iDep_aDep_bDep() { } 1.12 + public void iDep_aDep_bUnd() { } // warn 1.13 + // public void iDep_aDep_bInh() { } 1.14 + @Deprecated public void iDep_aUnd_bDep() { } 1.15 + public void iDep_aUnd_bUnd() { } 1.16 + // public void iDep_aUnd_bInh() { } 1.17 + @Deprecated public void iDep_aInh_bDep() { } 1.18 + public void iDep_aInh_bUnd() { } // warn 1.19 + // public void iDep_aInh_bInh() { } 1.20 + @Deprecated public void iUnd_aDep_bDep() { } 1.21 + public void iUnd_aDep_bUnd() { } // warn 1.22 + // public void iUnd_aDep_bInh() { } 1.23 + @Deprecated public void iUnd_aUnd_bDep() { } 1.24 + public void iUnd_aUnd_bUnd() { } 1.25 + // public void iUnd_aUnd_bInh() { } 1.26 + @Deprecated public void iUnd_aInh_bDep() { } 1.27 + public void iUnd_aInh_bUnd() { } 1.28 + // public void iUnd_aInh_bInh() { } 1.29 +}