이 Java 8 프로그램이 컴파일되지 않는 이유는 무엇입니까? 이 프로그램은 Java 7 (또는를 사용하는 Java 8 -source 7)에서 제대로 컴파일되지만 Java 8에서는 컴파일되지 않습니다. interface Iface {} class Impl implements Iface {} class Acceptor { public Acceptor(T obj) {} } public class Main { public static void main(String[] args) { Acceptor acceptor = new Acceptor(new Impl()); } } 결과: Main.java:10: error: incompatible types: cannot infer type arguments for Ac..