I've checked in a testcase in ProviderInjectionTest.java to demonstrate
this problem.
The gist is that if I call bind(...).toProvider(myProvider), then Guice
will sometimes invoke myProvider.get() before myProvider has been injected.
This only happens when the result of myProvider.get() is needed at injector
creation time.
Original issue reported on code.google.com by limpbizkit on 3 Jan 2008 at 5:18
Original issue reported on code.google.com by
limpbizkit
on 3 Jan 2008 at 5:18