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

David Jencks resolved FELIX-3718.
---------------------------------

    Resolution: Fixed

rev 1399525.  I introduced an isSatisfied method on State so if we are still in 
a satisfied state at the end of deactivation, we move to unsatisfied.
                
> [DS] deactivate might not move component state to unsatisfied
> -------------------------------------------------------------
>
>                 Key: FELIX-3718
>                 URL: https://issues.apache.org/jira/browse/FELIX-3718
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions: scr-1.8.0
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: scr-1.8.0
>
>
> After deactivating, we check to see if the state changed before moving to 
> unsatisfied:
>             if ( acm.state() == this )
>             {
>                 acm.changeState( Unsatisfied.getInstance() );
>             }
> But the state might have been moved from Active to Registered meanwhile, so 
> deactivate would leave us in the Registered state.  Instead, check if the 
> state is a satisfied state, and if so, move it to unsatisfied.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to