PicoContainer
  1. PicoContainer
  2. PICO-297

When Lifecycle.dispose() is called, stop() may be skipped.

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta
    • Fix Version/s: 2.0-beta
    • Component/s: PicoContainer (Java)
    • Labels:
      None
    • Number of attachments :
      0

      Description

      All of the GoovyNodeBuilderTestCases build the nanocontainer. (Which currently forces a start lifecycle to be called.)

      But then at the end of the test, dispose() is called without calling stop().

      If a container is started() when dispose() is called, then dispose() should call stop() before proceeding.

      To me, it is conceivable that resources might be leaked otherwise.

        People

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

          Dates

          • Created:
            Updated:
            Resolved: