Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 93045 invoked from network); 14 Jan 2009 15:00:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jan 2009 15:00:30 -0000 Received: (qmail 1331 invoked by uid 500); 14 Jan 2009 15:00:25 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 1291 invoked by uid 500); 14 Jan 2009 15:00:25 -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 1257 invoked by uid 99); 14 Jan 2009 15:00:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jan 2009 07:00:25 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jan 2009 15:00:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 68C08234C48B for ; Wed, 14 Jan 2009 07:00:02 -0800 (PST) Message-ID: <840008636.1231945202414.JavaMail.jira@brutus> Date: Wed, 14 Jan 2009 07:00:02 -0800 (PST) From: "Clement Escoffier (JIRA)" To: dev@felix.apache.org Subject: [jira] Resolved: (FELIX-876) Specification auto import is not supported for simple component types In-Reply-To: <427575869.1231930499738.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Clement Escoffier resolved FELIX-876. ------------------------------------- Resolution: Fixed Fix Version/s: iPOJO-1.2.0 Fixed at revision 734402 The 'specification' lookup is now extended to all type of components. > Specification auto import is not supported for simple component types > --------------------------------------------------------------------- > > Key: FELIX-876 > URL: https://issues.apache.org/jira/browse/FELIX-876 > Project: Felix > Issue Type: Improvement > Components: iPOJO > Affects Versions: iPOJO-1.0.0 > Environment: JOnAS 5.1 > Reporter: Guillaume Sauthier > Assignee: Clement Escoffier > Fix For: iPOJO-1.2.0 > > > 'specification' attributes denotes an interface that needs to be imported (at least its package) in order to allow iPOJO to load the interface. > When you're writing components based on abstract classes, sometimes you ends up with declaring service dependencies for the component that, in fact, belongs to the super class. > If the package used for the dependency's specification is never used in your bundle (containing the concrete class), then you have to manually add an Import-Package. > This is error prone. > iPOJO could check the packages of specifications and auto generate Import-Package for them (if required), just like what's already done for composite components. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.