Circular dependencies

2 views
Skip to first unread message

christophe...@gmail.com

unread,
Oct 30, 2009, 4:48:35 AM10/30/09
to google-guice
Is there any way to turn of the feature that resolves circular
dependencies?

At least for me it's easy to just inject stuff and after a while
things explode in a circular dependency that is hard to track down, I
still have a hard time tracking it down even with the nice detailed
exception. I think it would be nice to be able to turn the feature off
to get an error directly up front when I try to inject a circular
dependency.

Thanks!

Endre Stølsvik

unread,
Nov 2, 2009, 9:11:22 AM11/2/09
to google...@googlegroups.com
I'll just chime in here with nothing except my support: Hear hear!

Endre.

Stuart McCulloch

unread,
Nov 2, 2009, 12:20:12 PM11/2/09
to google...@googlegroups.com
2009/10/30 christophe...@gmail.com <christophe...@gmail.com>

Is there any way to turn of the feature that resolves circular
dependencies?

perhaps you could open a feature request over at:

   http://code.google.com/p/google-guice/issues/list

then people could vote on it by starring the issue
(afaik it would only require a minor code change)
 
At least for me it's easy to just inject stuff and after a while
things explode in a circular dependency that is hard to track down, I
still have a hard time tracking it down even with the nice detailed
exception. I think it would be nice to be able to turn the feature off
to get an error directly up front when I try to inject a circular
dependency.

Thanks!

--
Cheers, Stuart

Bob Lee

unread,
Nov 2, 2009, 1:15:20 PM11/2/09
to google...@googlegroups.com

Endre Stølsvik

unread,
Nov 3, 2009, 11:51:48 AM11/3/09
to google...@googlegroups.com
I mention it in this comment too..:

Endre.
Reply all
Reply to author
Forward
0 new messages