test/tools/javac/depOverrides/annotation/A.java

changeset 0
959103a6100f
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/tools/javac/depOverrides/annotation/A.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 A implements I {
    1.11 +    @Deprecated public void iDep_aDep_bDep() { }
    1.12 +    @Deprecated public void iDep_aDep_bUnd() { }
    1.13 +    @Deprecated public void iDep_aDep_bInh() { }
    1.14 +                public void iDep_aUnd_bDep() { } // warn
    1.15 +                public void iDep_aUnd_bUnd() { } // warn
    1.16 +                public void iDep_aUnd_bInh() { } // warn
    1.17 +    //          public void iDep_aInh_bDep() { }
    1.18 +    //          public void iDep_aInh_bUnd() { }
    1.19 +    //          public void iDep_aInh_bInh() { }
    1.20 +    @Deprecated public void iUnd_aDep_bDep() { }
    1.21 +    @Deprecated public void iUnd_aDep_bUnd() { }
    1.22 +    @Deprecated public void iUnd_aDep_bInh() { }
    1.23 +                public void iUnd_aUnd_bDep() { }
    1.24 +                public void iUnd_aUnd_bUnd() { }
    1.25 +                public void iUnd_aUnd_bInh() { }
    1.26 +    //          public void iUnd_aInh_bDep() { }
    1.27 +    //          public void iUnd_aInh_bUnd() { }
    1.28 +    //          public void iUnd_aInh_bInh() { }
    1.29 +}

mercurial