Community
Participate
Working Groups
I20100810-0800 In situations like the one below, we should have a quick fix that adds the required explicit type arguments to an invocation of a generic method. import java.io.IOException; import java.util.*; public class Try { void foo(IOException e) { handle(Collections.singletonList(e)); //error handle(Collections.<Exception>singletonList(e)); List<? super Exception> l1= Collections.nCopies(5, e); //error List<? super Exception> l2= Collections.<Exception>nCopies(5, e); } void handle(List<Exception> list) { } }