/** * @test /nodynamiccopyright/ * @bug 8019824 * @summary very long error messages on inference error * @compile/fail/ref=T8019824.out -XDrawDiagnostics T8019824.java */ class T8019824 { void test(Class> cls) { Foo foo = make(cls); } > Foo make(Class cls) { return null; } interface Foo {} }