xiaodududu / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

binding order matters when requireExplicitBindings is on #700

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
See the attached test case, it fails with

1) 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.

Original issue reported on code.google.com by pm...@google.com on 11 Apr 2012 at 11:18

Attachments: