PicoContainer
  1. PicoContainer
  2. PICO-314

StartableLifecycleStrategy assumes Disposable interface in disposeComponent

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: PicoContainer (Java)
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      The StartableLifecycleStrategy disposeComponent() method casts to Disposable instead of using the doLifecycleMethod method. This fails when the class is subclassed to use java.io.Closeable as the "disposable" interface.

      The code should call doLifecycleMethod from disposeComponent().

        People

        • Assignee:
          Paul Hammant
          Reporter:
          Mark J. Sinke
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: