/* * @test /nodynamiccopyright/ * @bug 8039214 * @summary Capture variable as an inference variable's lower bound * @compile/fail/ref=CaptureLowerBoundNeg.out -XDrawDiagnostics CaptureLowerBoundNeg.java */ public class CaptureLowerBoundNeg { static class D { void take(T arg) {} static D make(Class c) { return new D(); } } void test(Object o) { D.make(o.getClass()).take(o); } }