Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 99DA2200BF1 for ; Tue, 20 Dec 2016 01:03:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 98665160B21; Tue, 20 Dec 2016 00:03:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E368D160B35 for ; Tue, 20 Dec 2016 01:02:59 +0100 (CET) Received: (qmail 48690 invoked by uid 500); 20 Dec 2016 00:02:58 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 48280 invoked by uid 99); 20 Dec 2016 00:02:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2016 00:02:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 691902C03E4 for ; Tue, 20 Dec 2016 00:02:58 +0000 (UTC) Date: Tue, 20 Dec 2016 00:02:58 +0000 (UTC) From: "Pierre De Rop (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FELIX-5453) Swap callback not called when there are multiple aspects on a service and one of the aspects with lower rank is removed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 20 Dec 2016 00:03:00 -0000 [ https://issues.apache.org/jira/browse/FELIX-5453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pierre De Rop updated FELIX-5453: --------------------------------- Attachment: Activator2.java added modified Activator2.java > 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, Activator2.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. > Actual 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} > I can understand why swap is not called, because for ServiceRequiringX Aspect1 does not get really 'swapped' (the service stays Aspect2) But is there any way to find out this is happening? -- This message was sent by Atlassian JIRA (v6.3.4#6332)