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

Mon, 26 Oct 2015 13:23:30 -0700

author
asaha
date
Mon, 26 Oct 2015 13:23:30 -0700
changeset 2999
683b3e7e05a7
parent 890
3ab7bb46c5c1
child 2525
2eb010b6cb22
permissions
-rw-r--r--

Added tag jdk8u76-b00 for changeset 10ffafaf5340

     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