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

Wed, 23 Jan 2013 13:27:24 -0800

author
jjg
date
Wed, 23 Jan 2013 13:27:24 -0800
changeset 1521
71f35e4b93a5
parent 0
959103a6100f
permissions
-rw-r--r--

8006775: JSR 308: Compiler changes in JDK8
Reviewed-by: jjg
Contributed-by: mernst@cs.washington.edu, wmdietl@cs.washington.edu, mpapi@csail.mit.edu, mahmood@notnoop.com

     1 /* /nodynamiccopyright/ */
     2 // combinations of methods defined in an interface
     3 // and overridden in subtypes
     5 // class should compile with deprecation warnings as shown
     7 abstract class A implements I {
     8     @Deprecated public void iDep_aDep_bDep() { }
     9     @Deprecated public void iDep_aDep_bUnd() { }
    10     @Deprecated public void iDep_aDep_bInh() { }
    11                 public void iDep_aUnd_bDep() { } // warn
    12                 public void iDep_aUnd_bUnd() { } // warn
    13                 public void iDep_aUnd_bInh() { } // warn
    14     //          public void iDep_aInh_bDep() { }
    15     //          public void iDep_aInh_bUnd() { }
    16     //          public void iDep_aInh_bInh() { }
    17     @Deprecated public void iUnd_aDep_bDep() { }
    18     @Deprecated public void iUnd_aDep_bUnd() { }
    19     @Deprecated public void iUnd_aDep_bInh() { }
    20                 public void iUnd_aUnd_bDep() { }
    21                 public void iUnd_aUnd_bUnd() { }
    22                 public void iUnd_aUnd_bInh() { }
    23     //          public void iUnd_aInh_bDep() { }
    24     //          public void iUnd_aInh_bUnd() { }
    25     //          public void iUnd_aInh_bInh() { }
    26 }

mercurial