Proper use of unbounded wilcard generics
问题 I'm trying to use unbounded wildcards because I have some Callable's that return an Object but I'm not interested in the object (they return null and I'm just using Callable instead of Runnable to be able to throw checked Exceptions). So in principle I want to do this: CompletionService<?> ecs = ... Callable<?> = ... Future<?> f = ecs.submit(c); But here I get an error saying: The method submit(Callable<capture#1-of ?>) in the type CompletionService<capture#1-of ?> is not applicable for the