Skip to content

binding order matters when requireExplicitBindings is on #700

Closed

Description

@gissuebot

From pmoor@google.com 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

Activity

  1. added a commit that references this issue on Oct 8, 2022
  2. added a commit that references this issue on Oct 16, 2022
  3. added a commit that references this issue on Apr 25, 2023
    e0d329f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      ⌂ 换网址