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 5FA9E200B80 for ; Wed, 14 Sep 2016 23:42:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5E707160AB3; Wed, 14 Sep 2016 21:42:23 +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 CCCD5160AD5 for ; Wed, 14 Sep 2016 23:42:22 +0200 (CEST) Received: (qmail 79056 invoked by uid 500); 14 Sep 2016 21:42:21 -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 78615 invoked by uid 99); 14 Sep 2016 21:42:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2016 21:42:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8C2CB2C0D5C for ; Wed, 14 Sep 2016 21:42:21 +0000 (UTC) Date: Wed, 14 Sep 2016 21:42:21 +0000 (UTC) From: "Pierre De Rop (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FELIX-5346) Start annotation not propagated to sub classes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 14 Sep 2016 21:42:23 -0000 [ https://issues.apache.org/jira/browse/FELIX-5346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15491525#comment-15491525 ] Pierre De Rop commented on FELIX-5346: -------------------------------------- Hi Jago, Annotations inheritance is not currently supported. So, it's not really a bug, it's just that this feature is not implemented. But, I think it's easy to support this, I will try to do it quickly. Interestingly, there have been a lot of debates to support or not inheritance for DS annotations. See [1] for example, where BJ Hargrave explains why some problems may happen when the inherited class is not part of the bundle containing the extension class. Anyway, let's try to implement annotation inheritance ... will get back to you soon. [1] http://stackoverflow.com/questions/19436799/calling-abstract-classes-activate-method-apache-felix > Start annotation not propagated to sub classes > ---------------------------------------------- > > Key: FELIX-5346 > URL: https://issues.apache.org/jira/browse/FELIX-5346 > Project: Felix > Issue Type: Bug > Components: Dependency Manager Annotations > Reporter: Jago de Vreede > > Following case in pseudocode: > {code}Class A { > @Start > public void start() { > System.out.println("start"); > } > } > @Component > Class B extends A { > }{code} > When you run this nothing is printed but the start method in A should be called as B extends A. -- This message was sent by Atlassian JIRA (v6.3.4#6332)