You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2015/05/12 07:55:00 UTC

[jira] [Resolved] (FELIX-4679) Import package not generated for the classes used in throw clause in a private method.

     [ https://issues.apache.org/jira/browse/FELIX-4679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved FELIX-4679.
-------------------------------------
    Resolution: Pending Closed

Right, this is solved in 2.5.4

> 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
>             Fix For: maven-bundle-plugin-2.5.4
>
>         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)