Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
scr-1.0.8
-
None
Description
According to the comments in the method serviceAdded of class DependencyManager, it looks like the first "if" is to check the unsatisfied state.
But there are 2 unsatisfied state: STATE_ENABLED and STATE_UNSATISFIED.
So the first "if" should be as follows.
if ( (m_componentManager.getState() &
(AbstractComponentManager.STATE_ENABLED | AbstractComponentManager.STATE_UNSATISFIED)) != 0)
And in the following "else if", the method "handleServiceEvent" is going to check the statisfied state.
So "STATE_UNSATISFIED" should be removed from DependencyManager.STATE_MASK.