/* * @test /nodynamiccopyright/ * @bug 8176534 * @summary Missing check against target-type during applicability inference * @compile/fail/ref=T8176534.out -Werror -Xlint:unchecked -XDrawDiagnostics T8176534.java */ import java.util.*; abstract class T8176534 { List f(Enumeration e) { return newArrayList(forEnumeration(e)); } abstract Iterator forEnumeration(Enumeration e); abstract ArrayList newArrayList(Iterator xs); abstract ArrayList newArrayList(Iterable xs); }