Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4679

Import package not generated for the classes used in throw clause in a private method.

    XMLWordPrintableJSON

Details

    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.

      Attachments

        1. felix bug.zip
          8 kB
          Jonathan DELAIRE

        Activity

          People

            Unassigned Unassigned
            jdelaire Jonathan DELAIRE
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: