You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explicit bindings are required and com.google.apps.framework.producers.GuicePocTest$A is not explicitly bound.
while locating com.google.apps.framework.producers.GuicePocTest$A
for parameter 0 at com.google.apps.framework.producers.GuicePocTest$BImpl.<init>(GuicePocTest.java:17)
at com.google.apps.framework.producers.GuicePocTest$1.configure(GuicePocTest.java:25)
When reversing the binding order (first A, then B), it passes.
Ensure the order of calls to Binder.bind(...) in combination with @ does not affect whether classes are bound explicitly or with jIT binding.
Signed-off-by: Harald Fassler <harald.fassler+9974@gmail.com>
Ensure the order of calls to Binder.bind(...) in combination with @ does not affect whether classes are bound explicitly or with jIT binding.
Signed-off-by: Harald Fassler <harald.fassler+9974@gmail.com>
…tedBy. Instead, defer it like a normal bind(X.class).to(Y.class) does. This ensures that later bindings of Y are used.
Much thanks goes to @nineninesevenfour for their investigation (in #1650), which made fixing this much easier.
Fixes#700 and fixes#1650.
PiperOrigin-RevId: 527044205
From pmoor@google.com on April 11, 2012 19:18:52
See the attached test case, it fails with
while locating com.google.apps.framework.producers.GuicePocTest$A
for parameter 0 at com.google.apps.framework.producers.GuicePocTest$BImpl.<init>(GuicePocTest.java:17)
at com.google.apps.framework.producers.GuicePocTest$1.configure(GuicePocTest.java:25)
When reversing the binding order (first A, then B), it passes.
Attachment: gist
GuicePocTest.java
Original issue: http://code.google.com/p/google-guice/issues/detail?id=700
The text was updated successfully, but these errors were encountered: