pderop opened a new pull request, #607: URL: https://github.com/apache/felix-dev/pull/607
Motivation: Dependency copies are used for adapters, aspects, factory components and prototype clones. The copy constructors of ServiceDependencyImpl and ConfigurationDependencyImpl drop some fields: the swap callback is lost, and an optional configuration dependency becomes required in the copy. Modification: Copy the missing fields (swap callback, tracked service id, debug key, optional flag, needsInstance flag) and add a unit test checking copies. Result: A dependency copy behaves like the original: swap callbacks are invoked and optional configuration dependencies stay optional. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
