[ https://issues.apache.org/jira/browse/FELIX-2821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12990268#comment-12990268 ]
Felix Meschberger commented on FELIX-2821: ------------------------------------------ Thanks for the patch, this is basically the same solution I came up with ;-) > 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-sources.jar, > ref-order-bug-example-1.0.0.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. - For more information on JIRA, see: http://www.atlassian.com/software/jira