test/tools/javac/generics/6359951/T6359951.java

Thu, 21 Feb 2013 15:27:05 +0000

author
mcimadamore
date
Thu, 21 Feb 2013 15:27:05 +0000
changeset 1600
3fef0cae83b3
parent 611
4172cfff05f0
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8008444: Inherited generic functional descriptors are merged incorrectly
Summary: Missing call to Types.createMethodWithThrownTypes
Reviewed-by: jjg

     1 /**
     2  * @test  /nodynamiccopyright/
     3  * @bug     6359951
     4  * @summary Crash when using class field
     5  *
     6  *
     7  * @compile/fail/ref=T6359951.out -XDrawDiagnostics T6359951.java
     8  */
    10 public class T6359951 {
    11     public static String x;
    12     public static class C {}
    13     class D<T> { }
    14     class E<T> extends D<T.classOfT> {}
    15     class F<T extends T6359951> extends D<T.x> {}
    16     class G<T extends T6359951> extends D<T.C> {}
    17 }

mercurial