/** * @test /nodynamiccopyright/ * @bug 7086601 * @summary Error message bug: cause for method mismatch is 'null' * @compile/fail/ref=T7086601a.out -XDrawDiagnostics T7086601a.java */ class T7086601 { static void m1(Iterable s1, Iterable s2) { } static void m1(Object o) {} static void m2(Iterable s1, Iterable s2, Iterable s3) { } static void m2(Object o) {} @SafeVarargs static void m3(Iterable... ss) { } static void m3(Object o) {} static void test1(Iterable is, Iterable ii) { m1(is, ii); } static void test2(Iterable is, Iterable ii, Iterable id) { m2(is, ii, id); } static void test3(Iterable is, Iterable ii) { m3(is, ii); } static void test4(Iterable is, Iterable ii, Iterable id) { m3(is, ii, id); } }