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

Mon, 14 Nov 2011 15:11:10 -0800

author
ksrini
date
Mon, 14 Nov 2011 15:11:10 -0800
changeset 1138
7375d4979bd3
parent 890
3ab7bb46c5c1
child 2525
2eb010b6cb22
permissions
-rw-r--r--

7106166: (javac) re-factor EndPos parser
Reviewed-by: jjg

     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