Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-9521

Packages exported in earlier API Regions are not available to later API Regions

    XMLWordPrintableJSON

Details

    Description

      The API Regions documentation states that "Exports declared earlier in the api-regions array also apply to later elements in the array, so the platform region also contains all exports declared for the global region" [0]
      However the API Regions runtime fragment doesn't honour this.

      As a test case take 2 feature models:

      Feature Model A:

      • exports package foo.bar into region r1.
      • exports package foo.test into region r2.
        Note that according to the documentation mentioned above this means that foo.bar is also implicitly exported into region r2.

      Feature Model B:

      • exports package test.abc into region r2.
        Note that feature model B does not explicitly opt into region r1.

      Feature Model B also contains a bundle that imports foo.bar. However running these feature models together, the API Regions runtime fragment prevents Feature Model B from seeing the foo.bar package.

      [0] https://github.com/apache/sling-org-apache-sling-feature-extension-apiregions/blob/master/docs/api-regions.md#visibility-of-api

      Attachments

        Activity

          People

            davidb A. J. David Bosschaert
            davidb A. J. David Bosschaert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: