Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Circular Dependency Error Message #139

Closed
gissuebot opened this issue Jul 7, 2014 · 1 comment
Closed

Improve Circular Dependency Error Message #139

gissuebot opened this issue Jul 7, 2014 · 1 comment

Comments

@gissuebot
Copy link

From sberlin on August 06, 2007 17:56:32

Right now, a circular dependency produces the following error msg:
com.google.inject.ConfigurationException: Tried proxying Circle to support
a circular dependency, but it is not an interface.

It would be very useful if this message was improved to show who the
players in the circular dependency are.  That is, if class Circle depends
on SquareHole and SquareHole depends on Circle, the message could say
that's what it's failing.  This would make fixing the problem much easier.

Here's a fuller stack trace, for reference:

com.google.inject.ConfigurationException: Tried proxying Circle to support
a circular dependency, but it is not an interface.
        at com.google.inject.ConstructionContext.createProxy
(ConstructionContext.java:70)
        at com.google.inject.ConstructorInjector.construct
(ConstructorInjector.java:126)
        at [... lots of internal guice calls ...]
        at com.google.inject.InjectorImpl.getInstance
(InjectorImpl.java:728)
        at [... my code ...]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.limegroup.gnutella.gui.Main.main(Main.java:47)

Original issue: http://code.google.com/p/google-guice/issues/detail?id=139

@gissuebot
Copy link
Author

From limpbizkit on November 02, 2008 01:46:48

Will be addressed by issue 220 ...

Status: Duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant