You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2012/11/20 11:59:14 UTC
[jira] [Closed] (FELIX-2821) Component service references not
unbound in reverse order (breaks compendium spec 112.5.15)
[ https://issues.apache.org/jira/browse/FELIX-2821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger closed FELIX-2821.
------------------------------------
Close after release
> Component service references not unbound in reverse order (breaks compendium spec 112.5.15)
> -------------------------------------------------------------------------------------------
>
> Key: FELIX-2821
> URL: https://issues.apache.org/jira/browse/FELIX-2821
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Affects Versions: scr-1.6.0
> Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
> Java version: 1.6.0_16
> Default locale: en_GB, platform encoding: Cp1252
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
> Reporter: Stephen Flynn
> Assignee: Felix Meschberger
> Fix For: scr-1.6.2
>
> Attachments: ref-order-bug-example-1.0.0.jar, ref-order-bug-example-1.0.0-sources.jar, scr-2821-patch.txt
>
>
> Component references are unbound in the same order in which they were bound. If I have read the spec right it says they should be unbound in the reverse order...
> 112.5.15
> When unbinding services, the references are processed in the reverse order
> in which they are specified in the component description.
> The attached bundle demonstrates this
> When activating the bind order is correct...
> ExampleComponent.bindServiceA()
> ExampleComponent.bindServiceB()
> ExampleComponent.bindServiceC()
> ExampleComponent.activate()
> But when deactivating the order is not reversed...
> ExampleComponent.deactivate()
> ExampleComponent.unbindServiceA()
> ExampleComponent.unbindServiceB()
> ExampleComponent.unbindServiceC()
--
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