google-code-export / google-guice

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

Validate member injection at startup #148

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Right now, I think we just call injectMembers() on instances after creating
the injector. We should validate them so we can display all the errors at
once just like other injection points.

Original issue reported on code.google.com by crazybob...@gmail.com on 5 Sep 2007 at 12:38

GoogleCodeExporter commented 9 years ago
Fixed. We use bulk errors when we cannot inject members at injector creation 
time.

Guice configuration errors:

1) Error at field com.google.inject.BindingTest$C.e:
 Injecting into abstract types is not supported. Please use a concrete type instead of 
com.google.inject.BindingTest$NotInjectableOne.

2) Error at field com.google.inject.BindingTest$D.f:
 Injecting into abstract types is not supported. Please use a concrete type instead of 
com.google.inject.BindingTest$NotInjectableTwo.

2 error[s]

Original comment by limpbizkit on 14 May 2008 at 4:13