bineanzhou / google-guice

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

Errors when static members depend on pre-existing providers #185

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If a static member of type Foo is injected, and Foo is bound to a provider
instance, then the provider's get() method will be called before the
provider instance itself is injected.

This happens because BinderImpl.createInjector() does static injection
(line 284) before injecting pre-existing instances (line 291).

Original issue reported on code.google.com by net...@gmail.com on 11 Mar 2008 at 3:26

GoogleCodeExporter commented 9 years ago
Grab the latest code from subversion. I believe this was fixed last night as a 
part of the fix for bug 174.

Original comment by limpbizkit on 11 Mar 2008 at 5:15