You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Stephen Flynn (JIRA)" <ji...@apache.org> on 2011/02/03 15:55:29 UTC
[jira] Created: (FELIX-2821) Component service references not
unbound in reverse order (breaks compendium spec 112.5.15)
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
Fix For: scr-1.6.2
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
[jira] [Closed] (FELIX-2821) Component service references not
unbound in reverse order (breaks compendium spec 112.5.15)
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ 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
[jira] Updated: (FELIX-2821) Component service references not
unbound in reverse order (breaks compendium spec 112.5.15)
Posted by "Stephen Flynn (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephen Flynn updated FELIX-2821:
---------------------------------
Attachment: scr-2821-patch.txt
> 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
[jira] Resolved: (FELIX-2821) Component service references not
unbound in reverse order (breaks compendium spec 112.5.15)
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved FELIX-2821.
--------------------------------------
Resolution: Fixed
I have applied the provided patch and added an integration test ensuring correct bind/unbind order.
> 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
[jira] Updated: (FELIX-2821) Component service references not
unbound in reverse order (breaks compendium spec 112.5.15)
Posted by "Stephen Flynn (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephen Flynn updated FELIX-2821:
---------------------------------
Attachment: ref-order-bug-example-1.0.0-sources.jar
ref-order-bug-example-1.0.0.jar
> 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
> Fix For: scr-1.6.2
>
> Attachments: ref-order-bug-example-1.0.0-sources.jar, ref-order-bug-example-1.0.0.jar
>
>
> 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
[jira] Commented: (FELIX-2821) Component service references not
unbound in reverse order (breaks compendium spec 112.5.15)
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12990145#comment-12990145 ]
Felix Meschberger commented on FELIX-2821:
------------------------------------------
Correct. Thanks for reporting this issue.
> 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
>
>
> 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
[jira] Commented: (FELIX-2821) Component service references not
unbound in reverse order (breaks compendium spec 112.5.15)
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ 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
[jira] Assigned: (FELIX-2821) Component service references not
unbound in reverse order (breaks compendium spec 112.5.15)
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger reassigned FELIX-2821:
----------------------------------------
Assignee: Felix Meschberger
> 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
>
>
> 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
[jira] Commented: (FELIX-2821) Component service references not
unbound in reverse order (breaks compendium spec 112.5.15)
Posted by "Stephen Flynn (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12990195#comment-12990195 ]
Stephen Flynn commented on FELIX-2821:
--------------------------------------
Took a quick look at the source and the attached patch seems to do the trick without breaking existing tests.
> 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
[jira] Issue Comment Edited: (FELIX-2821) Component service
references not unbound in reverse order (breaks compendium spec 112.5.15)
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-2821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12990292#comment-12990292 ]
Felix Meschberger edited comment on FELIX-2821 at 2/3/11 8:33 PM:
------------------------------------------------------------------
I have applied the provided patch and added an integration test ensuring correct bind/unbind order in Rev. 1066946.
was (Author: fmeschbe):
I have applied the provided patch and added an integration test ensuring correct bind/unbind order.
> 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