langtools/test/tools/javac/ClassToTypeParm.java
author lana
Tue, 25 Apr 2017 07:38:50 +0000
changeset 44909 b53c770dc04f
parent 26274 02a5b23ee21c
permissions -rw-r--r--
Added tag jdk-10+1 for changeset 3a409afd3f86

/*
 * @test /nodynamiccopyright/
 * @bug 4948144
 * @summary Generics: assignment of Class to type parm's default should elicit error
 * @author never
 *
 * @compile/fail/ref=ClassToTypeParm.out -XDrawDiagnostics  ClassToTypeParm.java
 */

class ClassToTypeParm<T> {
    void f(Class c) {
        T t = c;
    }
}