google-code-export / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
2 stars 1 forks source link

toProvider() with missing binding fails silently #155

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If I bind toProvider(), that provider will not be injected if any of its 
bindings are not bound. This 
should cause a CreationException, but does not.

This problem exists in Guice 1.0 but is fixed in the current source. I've 
checked in 
ProviderInjectionTest#testProvidersAreInjectedWhenBound that demonstrates the 
problem.

Original issue reported on code.google.com by limpbizkit on 3 Oct 2007 at 9:06