test/tools/javac/generics/6969184/T6969184.java

Mon, 02 Sep 2013 22:38:36 +0100

author
vromero
date
Mon, 02 Sep 2013 22:38:36 +0100
changeset 2000
4a6acc42c3a1
parent 890
3ab7bb46c5c1
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8016177: structural most specific and stuckness
Reviewed-by: jjg, vromero
Contributed-by: maurizio.cimadamore@oracle.com

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug 6969184
     4  *
     5  * @summary  poor error recovery after symbol not found
     6  * @author Maurizio Cimadamore
     7  * @compile/fail/ref=T6969184.out -XDrawDiagnostics T6969184.java
     8  *
     9  */
    11 class T6969184 {
    12     static class C1<X> {
    13         void m1(C1<? extends NonExistentClass> n) {}
    14         void m2(C1<? super NonExistentClass> n) {}
    15         void m3(C1<?> n) {}
    16     }
    18     static class C2<X extends NonExistentBound> {
    19         void m1(C2<? extends NonExistentClass> n) {}
    20         void m2(C2<? super NonExistentClass> n) {}
    21         void m3(C2<?> n) {}
    22     }
    24     static class C3<X extends NonExistentBound1 & NonExistentBound2> {
    25         void m1(C3<? extends NonExistentClass> n) {}
    26         void m2(C3<? super NonExistentClass> n) {}
    27         void m3(C3<?> n) {}
    28     }
    29 }

mercurial