You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Pierre De Rop (JIRA)" <ji...@apache.org> on 2014/07/02 14:29:24 UTC
[jira] [Resolved] (FELIX-4002) ComponentStateListener.started is
invoked twice when the listener is added in the start method.
[ https://issues.apache.org/jira/browse/FELIX-4002?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre De Rop resolved FELIX-4002.
----------------------------------
Resolution: Fixed
Assignee: Pierre De Rop (was: Marcel Offermans)
committed a patch in rv 1607341; the ComponentLifeCycleTest.testDynamicComponentStateListingLifeCycle2() test is now passing OK.
The addStateListener/removeStateListener are now scheduling a runnable in the component's executor. This allows to avoid complex synchronizations code and the listener is now called with the missed events.
> ComponentStateListener.started is invoked twice when the listener is added in the start method.
> -----------------------------------------------------------------------------------------------
>
> Key: FELIX-4002
> URL: https://issues.apache.org/jira/browse/FELIX-4002
> Project: Felix
> Issue Type: Bug
> Components: Dependency Manager
> Affects Versions: dependencymanager-3.1.0
> Reporter: Alexander Broekhuis
> Assignee: Pierre De Rop
>
> When a ComponentStateListener is added in the start lifecycle method of a component the started method is called twice. Once immediately, once if the start is returned.
> The first call is unexpected and should not happen?
--
This message was sent by Atlassian JIRA
(v6.2#6252)