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
Original issue reported on code.google.com by eric.j...@gmail.com on 13 Apr 2012 at 7:32
Original issue reported on code.google.com by
eric.j...@gmail.com
on 13 Apr 2012 at 7:32Attachments: