Olaf Otto created FELIX-5173:
--------------------------------
Summary: Metatype service's BundleResources ignore properties
provided by fragment bundles
Key: FELIX-5173
URL: https://issues.apache.org/jira/browse/FELIX-5173
Project: Felix
Issue Type: Bug
Components: Metatype Service
Affects Versions: metatype-1.1.2
Reporter: Olaf Otto
Priority: Minor
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(...)":
{code}
URL resURL = this.bundle.getEntry(resourceName);
...
{code}
Instead, getResource(...) should be used, which takes into account resources
contributed by fragments.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)