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

DefinitionProviderImpl.get() doesn't satisfy its contract

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.4
    • None
    • None
    • None

      The interface of DefinitionProvider tells us:

      
          /**
           * Returns the underlying bean if and only if it is successfully resolved, is valid, and is enabled.
           *
           * @throws Registry.InvalidDefinitionException (which is a RuntimeException) if the underlying bean is not successfully resolved, not valid, or not enabled.
           */
          T get() throws Registry.InvalidDefinitionException;

      However, info.magnolia.config.registry.DefinitionProviderBuilder.DefinitionProviderImpl does none of that.

        Acceptance criteria

              gjoseph Magnolia International
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD