Pierre De Rop created FELIX-5155:
------------------------------------

             Summary: Adapter/Aspect extra service dependencies injected twice 
if using callback instance
                 Key: FELIX-5155
                 URL: https://issues.apache.org/jira/browse/FELIX-5155
             Project: Felix
          Issue Type: Bug
          Components: Dependency Manager
    Affects Versions: dependencymanager-3.0.0
            Reporter: Pierre De Rop
            Assignee: Pierre De Rop
             Fix For:   org.apache.felix.dependencymanager-r7


In the context of the new DM-lambda library, we found the following issue:

When an aspect or an adapter is defined on an existing service, and if such 
aspect (or adapter) declares some extra service dependencies, and if one of 
these extra dependencies are using an external callback instance (in order to 
inject the extra dependency into the adapter or aspect instance), then the 
callback instance is invoked twice:

The first time, the callback instance is wrongly called by the internal aspect 
(or adapter) AbstractDecorator component, and the second time it is correctly 
called in order to inject the dependency into the callback instance.

I have written a test case which reproduces this issue and will commit it soon.



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

Reply via email to