/* * @test /nodynamiccopyright/ * @bug 8167000 * @summary Refine handling of multiple maximally specific abstract methods * @compile/fail/ref=T8167000c.out -XDrawDiagnostics T8167000c.java */ public class T8167000c { interface A { Integer m() throws Throwable; } interface B { Object m() throws X; } interface E extends A, B { } void test() { E ex = () -> { throw new Throwable(); }; } }