test/tools/javac/depOverrides/doccomment/R.java

Fri, 29 Apr 2011 16:06:28 +0100

author
mcimadamore
date
Fri, 29 Apr 2011 16:06:28 +0100
changeset 992
dc3d9ef880a1
parent 0
959103a6100f
permissions
-rw-r--r--

6550655: com.sun.tools.javac.code.Symbol$CompletionFailure
Summary: Accessing a non-existing enum constant from an annotation whose class is available results in an internal error
Reviewed-by: jjg

     1 /* /nodynamiccopyright/ */
     2 // combinations of methods defined in a base class
     3 // and overridden in subtypes
     5 // class should compile with warnings as shown
     7 class R extends Q {
     8     /** @deprecated */ public void pDep_qDep_rDep() { }
     9                        public void pDep_qDep_rUnd() { } // warn
    10     //                 public void pDep_qDep_rInh() { }
    11     /** @deprecated */ public void pDep_qUnd_rDep() { }
    12                        public void pDep_qUnd_rUnd() { }
    13     //                 public void pDep_qUnd_rInh() { }
    14     /** @deprecated */ public void pDep_qInh_rDep() { }
    15                        public void pDep_qInh_rUnd() { } // warn
    16     //                 public void pDep_qInh_rInh() { }
    17     /** @deprecated */ public void pUnd_qDep_rDep() { }
    18                        public void pUnd_qDep_rUnd() { } // warn
    19     //                 public void pUnd_qDep_rInh() { }
    20     /** @deprecated */ public void pUnd_qUnd_rDep() { }
    21                        public void pUnd_qUnd_rUnd() { }
    22     //                 public void pUnd_qUnd_rInh() { }
    23     /** @deprecated */ public void pUnd_qInh_rDep() { }
    24                        public void pUnd_qInh_rUnd() { }
    25     //                 public void pUnd_qInh_rInh() { }
    26 }

mercurial