[
https://issues.apache.org/jira/browse/FELIX-4188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13727907#comment-13727907
]
Guillaume Nodet commented on FELIX-4188:
----------------------------------------
The 3 needed classes are embedded already, I agree there should be no external
dependency.
I've added an integration test to demonstrate the problems.
On the old code, the first assertion about the timeout will fail and one of the
two last assertions (i.e. one of the component throw an exception when
accessing the bundle context).
With the new code, the components deactivation occurs concurrently with the
bundle being stopped and the two components can deactivate without any failures.
> If a bundle is stopped while the SCR extender is being stopped, the callback
> for the STOPPING event returns before full deactivation
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: FELIX-4188
> URL: https://issues.apache.org/jira/browse/FELIX-4188
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Affects Versions: scr-1.6.2
> Reporter: Guillaume Nodet
> Assignee: Guillaume Nodet
> Fix For: scr-1.8.0
>
>
> This can cause errors when actually deactivating components because the
> classloader and bundle context aren't valid anymore.
> I'll provide a fix using the AbstractExtender from felix utils instead.
--
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