Status: New
Owner: ----
New issue 701 by [email protected]: Multibinder doesn't handler circular
references
http://code.google.com/p/google-guice/issues/detail?id=701
Shouldn't the attached test case work without having to use a Provider? I
get this exception:
1) Error in custom provider, java.lang.IllegalStateException: This is a
proxy used to support circular references involving constructors. The
object we're proxying is not constructed yet. Please wait until after
injection has completed to use this object.
at MultibinderTest$1.configure(MultibinderTest.java:24)
while locating java.util.Set<MultibinderTest$Processor>
for parameter 0 at
MultibinderTest$RecursiveProcessor.<init>(MultibinderTest.java:54)
while locating MultibinderTest$RecursiveProcessor
while locating MultibinderTest$Processor annotated with
@com.google.inject.multibindings.Element(setName=,uniqueId=2)
at MultibinderTest$1.configure(MultibinderTest.java:24)
while locating java.util.Set<MultibinderTest$Processor>
for parameter 0 at MultibinderTest$Foo.<init>(MultibinderTest.java:69)
at MultibinderTest$1.configure(MultibinderTest.java:23)
while locating MultibinderTest$Foo
Attachments:
MultibinderTest.java 1.7 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.