Empty system package is exported when a semicolon is present in "extra" 
configuration
-------------------------------------------------------------------------------------

                 Key: FELIX-897
                 URL: https://issues.apache.org/jira/browse/FELIX-897
             Project: Felix
          Issue Type: Bug
          Components: Framework
    Affects Versions: felix-1.4.1, felix-1.4.0
         Environment: linux/jdk1.5
            Reporter: Pierre De Rop
            Priority: Minor


Felix exports an empty system package when the felix "extra" configuration 
property starts with a semicolon.
For instance, with the following configuration 

org.osgi.framework.system.packages.extra=${jre-${java.specification.version}}

jre-1.5=; \
 com.sun.accessibility.internal.resources; \
 com.sun.beans; \
 ...

Then, Felix interprets the semicolon (the one after "jre-1.5=") as an empty 
system package, which is exported to other bundles.
This may lead to tricky issues, especially for bundles using 
"DynamicImport-Package: *".

For instance, the following code returns null, when getting a resource from the 
bundle archive (and when there is 
"DynamicImport-Package: *" in the manifest):

->

  InputStream in = 
getClass().getClassLoader().getResourceAsStream("MyResource.properties");


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to