Status: New
Owner: ----

New issue 620 by [email protected]: toProvider is not working in guice3.0 anymore
http://code.google.com/p/google-guice/issues/detail?id=620


in a module i have :

bind(Pf.class).toProvider(ProviderPf.class);

and
public class ProviderPf implements Provider<Pf> {


    public Pf get() {
      .....
     }
}

It worked with guice2.0 but it gives an error in 3.0:

Bound mismatch: The generic method toProvider(Class<I>) of type GinLinkedBindingBuilder<T> is not applicable for the arguments (Class<ProviderPf>). The inferred type ProviderPf is not a valid substitute for the bounded parameter <I extends Provider<? extends Pf>>




--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en.

Reply via email to