Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-8103

Multibinding IoC fails when no implementations are declared

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.2.10, 6.3.0
    • 6.2.9, 6.3.0
    • None
    • None

      Steps to reproduce

      Define a multibinding interface Foo, map no implementations, try to inject Set<Foo> somewhere.

      Expected results

      Empty set injected

      Actual results

      Guice injection failure.

      Development notes

      This happens due to "lazy" registration of multi-binding interfaces: we invoke Guice.newSetMultibinder() only while registering an actual implementation of an interface. This is all due to the lack of specific syntax that would let us declare the presence of such interface itself. The attached PR suggests to add such syntax.

        Acceptance criteria

              apchelintcev Aleksandr Pchelintcev
              apchelintcev Aleksandr Pchelintcev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD