From zorzella --
Suppose you're in this situation - Guice doesn't like the wildcard, but you
can't pass a
Provider<Bar> to Ifc.a().
public interface Ifc {
@Inject void a(Provider<? extends Foo> fooProvider);
}
interface Foo {}
interface Bar extends Foo {}
public void test() {
Provider<Bar> barProvider = Providers.<Bar>of(new Bar() {});
Ifc ifc = ...;
ifc.a(barProvider); // requires wildcard
}
Original issue reported on code.google.com by limpbizkit on 10 Jun 2008 at 8:39
Original issue reported on code.google.com by
limpbizkit
on 10 Jun 2008 at 8:39