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

iPojo manipulation adds incorrect Import-Package declarations when using Composites

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: ipojo-manipulator-1.12.0
    • Fix Version/s: None
    • Component/s: iPOJO
    • Labels:
      None

      Description

      Running the iPojo ant task using a metadata file that include Composite definitions, it finds all elements in the metadata that have a 'specification' attribute and adds it to the Import-Packages header.

      Composites have two elements which support a 'specification' attribute:

      1. <subservice action="import" specification="com.abc.import.ImportA">
      2. <provides action="export" specification="com.abc.export.ExportZ">

      iPojo blindly adding the packages specified by these attributes to the Import-Package header causes the following issues:

      1. if a java.* class is exported then if it is added then Felix throws an exception since it is invalid to import a java.* class
      2. if the manifest already contained an Import-Package header which had version constraints on a package that was included in a <subservice> declaration then iPojo overwrites the Import-Package header without the original version constraints for that package.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              davidrcook David Cook
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: