langtools/test/tools/javac/generics/GetClass.java
author hseigel
Wed, 02 Mar 2016 23:48:41 +0000
changeset 36397 c487ced7231c
parent 30721 1024d425d97e
permissions -rw-r--r--
Merge

/*
 * @test /nodynamiccopyright/
 * @bug 4919255 4982096 5004321
 * @summary the type of x.getClass() is no longer Class<? extends X>
 * @author gafter
 *
 * @compile/fail/ref=GetClass.out -XDrawDiagnostics  GetClass.java
 */

public class GetClass {
    public static void main(String[] args) {
        Class<? extends Class<GetClass>> x = GetClass.class.getClass();
    }
}