Skip to content

binding order matters when requireExplicitBindings is on #700

@gissuebot

Description

@gissuebot

From [email protected] on April 11, 2012 19:18:52

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.

Attachment: gist
   GuicePocTest.java

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions