Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
metatype-1.1.2
-
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.