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

Metatype service's BundleResources ignore properties provided by fragment bundles

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • metatype-1.1.2
    • metatype-1.1.4
    • Metatype Service
    • None

    Description

      OSGi Fragment bundles may - rather similar to OSGI bundles contributing Resource Bundles for i18n - add translated properties for metatype services to a host bundle. Also, fragment bundles may add declarative service to a host bundle, thus having to contribute the corresponding properties.

      However, the current BundleResources implementation exclusively loads properties from the declaring (host) bundle using "getEntry(...)":

      URL resURL = this.bundle.getEntry(resourceName);
      ...
      

      Instead, getResource(...) should be used, which takes into account resources contributed by fragments.

      Attachments

        Activity

          People

            jajans J.W. Janssen
            o.otto Olaf Otto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: