frjaeger220 / google-guice

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

Exceptionhandling during requestStaticInjection phase? #209

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
appears in: current trunk revision 523

Is there any information available, how Guice handles exception during the
requestStaticInjection phase?

As far as I have experienced the problem, the exceptions in this phase are
silently ignored. This seems to be consistent with InjectorBuilder.build(),
where errors.throwCreationExceptionIfErrorsExist() is done right before
fulfillInjectionRequests().

Due to static injection is often used for post initialization, I believe
Guice should forward this kind of post initialization exception(s) to the
application by throwing some kind of PostInitializationException.

Original issue reported on code.google.com by sven.lin...@gmail.com on 16 Jun 2008 at 11:17

GoogleCodeExporter commented 9 years ago
I've added tests to demonstrate this problem has been fixed.
http://code.google.com/p/google-guice/source/detail?r=656

Original comment by limpbizkit on 2 Nov 2008 at 8:58