langtools/test/tools/javac/NewGeneric.java
author duke
Wed, 05 Jul 2017 23:01:50 +0200
changeset 44228 e46434c65a2b
parent 26529 10ec5e52bf75
permissions -rw-r--r--
Merge

/*
 * @test /nodynamiccopyright/
 * @bug 4959929
 * @summary unclear diagnostic for "new T()"
 * @author never
 *
 * @compile/fail/ref=NewGeneric.out -XDrawDiagnostics  NewGeneric.java
 */


public class NewGeneric {
    private static class Type<T> {
        Type() { T t = new T(); }
    }
}