Return-Path: X-Original-To: apmail-aries-dev-archive@www.apache.org Delivered-To: apmail-aries-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 254911897F for ; Tue, 12 Jan 2016 12:48:40 +0000 (UTC) Received: (qmail 48308 invoked by uid 500); 12 Jan 2016 12:48:40 -0000 Delivered-To: apmail-aries-dev-archive@aries.apache.org Received: (qmail 48222 invoked by uid 500); 12 Jan 2016 12:48:40 -0000 Mailing-List: contact dev-help@aries.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aries.apache.org Delivered-To: mailing list dev@aries.apache.org Received: (qmail 48158 invoked by uid 99); 12 Jan 2016 12:48:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2016 12:48:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C7FAD2C1F57 for ; Tue, 12 Jan 2016 12:48:39 +0000 (UTC) Date: Tue, 12 Jan 2016 12:48:39 +0000 (UTC) From: "Christian Schneider (JIRA)" To: dev@aries.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ARIES-1474) blueprint-maven-plugin: Inherited init/destroy methods are ignored MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ARIES-1474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15093832#comment-15093832 ] Christian Schneider commented on ARIES-1474: -------------------------------------------- As these are very small files I would be ok if you state here that the files were intended to have the apache license. > blueprint-maven-plugin: Inherited init/destroy methods are ignored > ------------------------------------------------------------------ > > Key: ARIES-1474 > URL: https://issues.apache.org/jira/browse/ARIES-1474 > Project: Aries > Issue Type: Bug > Components: Blueprint > Affects Versions: blueprint-maven-plugin-1.3.0 > Reporter: Sam Wright > Assignee: Christian Schneider > Fix For: blueprint-maven-plugin-1.4.0 > > > Current behaviour: > {code} > public class A { > @PostConstruct > public void init() {} > @PreDestroy > public void destroy() {} > } > public class B extends A {} > public class C extends B { > @Override > public void init() {} > @PostConstruct > public void secondInit() > } > {code} > Three problems: > * The A.destroy() method is ignored > * The C.init() method overrides A.init() without the @PostConstruct annotation, but is still taken to be the init method. This means the subclass can't disable a superclass' init method. > * The C.secondInit() method is silently ignored because another init method is found first. > Patch incoming... -- This message was sent by Atlassian JIRA (v6.3.4#6332)