felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Pauls (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-5676) Uninstall should throw an exception if called while the bundle is starting or stopping
Date Thu, 10 Aug 2017 22:59:00 GMT

     [ https://issues.apache.org/jira/browse/FELIX-5676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Karl Pauls resolved FELIX-5676.
-------------------------------
    Resolution: Fixed

Fixed in r1804741.

> Uninstall should throw an exception if called while the bundle is starting or stopping
> --------------------------------------------------------------------------------------
>
>                 Key: FELIX-5676
>                 URL: https://issues.apache.org/jira/browse/FELIX-5676
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-5.6.6
>            Reporter: Karl Pauls
>            Assignee: Karl Pauls
>             Fix For: framework-5.6.8
>
>
> 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).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message