Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5676

Uninstall should throw an exception if called while the bundle is starting or stopping

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: framework-5.6.6
    • Fix Version/s: framework-5.6.8
    • Component/s: Framework
    • Labels:
      None

      Description

      If uninstall is called on a bundle from within the thread that is currently starting or stopping the bundle (i.e., the bundle is trying to change its own state while holding its bundle lock) we currently just let the uninstall happen.

      That can cause the bundle to be delivered to other bundles as starting or stopping or active while actually being uninstalled already. Instead, we should detect this situation and throw an IllegalStateException instead (as per spec).

        Attachments

          Activity

            People

            • Assignee:
              karlpauls Karl Pauls
              Reporter:
              karlpauls Karl Pauls
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: