Status: New
Owner: ----
New issue 613 by [email protected]: Circular dependencies with @Provides
@Singleton methods don't create singletons.
http://code.google.com/p/google-guice/issues/detail?id=613
See the attached file. Two "singleton" StringBuilders are created. Guice
3.0 properly catches this with the error "Provider was reentrant while
creating a singleton".
The workaround is to inject Provider<StringBuilder> into SomeClass.
I don't expect this to get fixed since there's a workaround and Guice 3.0
(which doesn't have the issue) is right around the corner, but I figured
I'd file it anyway.
Attachments:
InjectionTest.java 837 bytes
--
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.