Status: New
Owner: ----

New issue 676 by [email protected]: singletions recreated many times on error, memebrs injected values may be null
http://code.google.com/p/google-guice/issues/detail?id=676

1) Singletons should be not recreated many times if there was error whil constructing it. i.e.:
class T1, class T2 depends on T1 and class T3 depends on T1.
All of them singletons. Guice will try to create T1 three times: when creating itself, when creating T2 and T3.

2) Injected member may be null in case of dependent bean creation error. i.e.:
T1 class, T2 class have member of T1.
T1 failed to create due to exception, but T2 will not fail, rather it will have T1 fieled equal to null.

Attached patch to fix issues.

Attachments:
        guice-singleton-recreation.patch  2.2 KB

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en.

Reply via email to