Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-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 5E5D717F42 for ; Thu, 23 Oct 2014 13:39:34 +0000 (UTC) Received: (qmail 64344 invoked by uid 500); 23 Oct 2014 13:39:34 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 64262 invoked by uid 500); 23 Oct 2014 13:39:34 -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 63983 invoked by uid 99); 23 Oct 2014 13:39:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Oct 2014 13:39:34 +0000 Date: Thu, 23 Oct 2014 13:39:33 +0000 (UTC) From: "Jonathan DELAIRE (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FELIX-4679) Import package not generated for the classes used in throw clause in a private method. 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/FELIX-4679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan DELAIRE updated FELIX-4679: ------------------------------------ Description: Example: ModuleA containing the following classes: public class A { private void someMethod() throws ExceptionB { } public void someMethod2() throws ExceptionC { } } ModuleB containing the two following classes in different packages: package com.module.b.exception; public class ExceptionB extends Exception { } and package com.module.c.exception; public class ExceptionC extends Exception { } The generated manifest for moduleA would be: Import-Package: com.module.c.exception;version="[1.0,2)" while I except it to be: Import-Package: com.module.c.exception;version="[1.0,2)",com.module.b.exception;version="[1.0,2)" The fact that "someMethod" is private is preventing the maven-bundle-plugin from adding the import on the exception class package. was: Example: ModuleA containing the following classes: public class A { private void someMethod() throws ExceptionB { } public void someMethod2() throws ExceptionC { } } ModuleB containing the two following classes in different packages: package com.module.b.exception; public class ExceptionB extends Exception { } and package com.module.c.exception; public class ExceptionC extends Exception { } The generated manifest for moduleA would be: Import-Package: com.module.c.exception;version="[1.0,2)" while I except it to be: Import-Package: com.module.c.exception;version="[1.0,2)",com.module.b.exception;version="[1.0,2)" > Import package not generated for the classes used in throw clause in a private method. > -------------------------------------------------------------------------------------- > > Key: FELIX-4679 > URL: https://issues.apache.org/jira/browse/FELIX-4679 > Project: Felix > Issue Type: Bug > Components: Maven Bundle Plugin > Affects Versions: maven-bundle-plugin-2.5.3 > Reporter: Jonathan DELAIRE > Attachments: felix bug.zip > > > Example: > ModuleA containing the following classes: > public class A { > private void someMethod() throws ExceptionB { > } > public void someMethod2() throws ExceptionC { > } > } > ModuleB containing the two following classes in different packages: > package com.module.b.exception; > public class ExceptionB extends Exception { > } > and > package com.module.c.exception; > public class ExceptionC extends Exception { > } > The generated manifest for moduleA would be: > Import-Package: com.module.c.exception;version="[1.0,2)" > while I except it to be: > Import-Package: com.module.c.exception;version="[1.0,2)",com.module.b.exception;version="[1.0,2)" > The fact that "someMethod" is private is preventing the maven-bundle-plugin from adding the import on the exception class package. -- This message was sent by Atlassian JIRA (v6.3.4#6332)