You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Pierre De Rop (JIRA)" <ji...@apache.org> on 2009/01/23 17:29:59 UTC
[jira] Closed: (FELIX-897) Empty system package is exported when a
semicolon is present in "extra" configuration
[ https://issues.apache.org/jira/browse/FELIX-897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre De Rop closed FELIX-897.
-------------------------------
The fix is OK. Thanks.
> 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.0, felix-1.4.1
> Environment: linux/jdk1.5
> Reporter: Pierre De Rop
> Assignee: Richard S. Hall
> Priority: Minor
> Fix For: felix-1.6.0
>
>
> 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.