Comment #2 on issue 550 by ron.gross: Exceptions when using circular
dependency in multi-threaded code
http://code.google.com/p/google-guice/issues/detail?id=550
A few workarounds that I've found:
1. Using a Provider instead of Guice's Proxy seems to resolve the issue.
2. When using asEagerSingleton the problem does not reproduce.
Is there a way to disable the proxy generation for circular dependencies
(make it thorw an exception)? I would rather always use a Provider instead
of a proxy until this is fixed, and would like an easy way to catch all
these cases where my code has circular dependencies.
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to google-guice-...@googlegroups.com.
To unsubscribe from this group, send email to
google-guice-dev+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.