You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Jeroen Daanen (JIRA)" <ji...@apache.org> on 2016/12/19 13:21:58 UTC

[jira] [Created] (FELIX-5453) Swap callback not called when there are multiple aspects on a service and one of the aspects with lower rank is removed

Jeroen Daanen created FELIX-5453:
------------------------------------

             Summary: Swap callback not called when there are multiple aspects on a service and one of the aspects with lower rank is removed
                 Key: FELIX-5453
                 URL: https://issues.apache.org/jira/browse/FELIX-5453
             Project: Felix
          Issue Type: Bug
          Components: Dependency Manager
    Affects Versions: org.apache.felix.dependencymanager-r8
            Reporter: Jeroen Daanen
         Attachments: Activator.java

If you have multiple aspects on a service with interface X and one of the aspects with a lower rank is removed, the service requiring service X does not get the swap callback.

See the attached Activator with example code.
The swap method is not called when 'aspect1' is removed.
Output of running the activator:
{noformat}
Add: XImpl

Swap old: XImpl
Swap new: Aspect1

Swap old: Aspect1
Swap new: Aspect2

Swap old: Aspect2
Swap new: XImpl
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)