PicoContainer
  1. PicoContainer
  2. PICO-393

AbstractDelegatingMutablePicoContainer addComponent() unwraps the delegate picoContainer.

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Component/s: PicoContainer (Java)
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      0

      Description

      @Test
      public void testAddComponentReturnsOutermostContainer()

      { MutablePicoContainer outer = createPicoContainer(null); MutablePicoContainer resultOfAddComponents = outer.addComponent(A.class) .addComponent(B.class); assertTrue(resultOfAddComponents == outer); }

      Working on a fix, but current fix breaks some other tests. In process of investigating.

        People

        • Assignee:
          Michael Rimov
          Reporter:
          Michael Rimov
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: