[ 
http://issues.apache.org/jira/browse/FELIX-78?page=comments#action_12415304 ] 

Marcel Offermans commented on FELIX-78:
---------------------------------------

If you do not export some of the "core" OSGi packages through the system 
bundle, but install the org.osgi.core bundle to do that you will get all kinds 
of class cast exceptions (for example when the framework instantiates a bundle 
activator). To prevent this, I think we should consider always exporting these 
packages through the system bundle, because the framework won't work very well 
if we don't.

So basically I'm proposing adding a list of packages that will always be 
exported through the system bundle, regardless of the property.

> Modify framework to export proper JRE packages for the execution environment
> ----------------------------------------------------------------------------
>
>          Key: FELIX-78
>          URL: http://issues.apache.org/jira/browse/FELIX-78
>      Project: Felix
>         Type: Improvement

>   Components: Framework
>     Reporter: Richard S. Hall
>     Priority: Minor

>
> The OSGi specification requires that class path classes are hidden from 
> bundles. To expose classes on the class path, the system bundle can be made 
> to "export" them by adding the packages to the 
> org.osgi.framework.system.packages property in the config.properties file.
> The should create proper value definitions for this property for JDKs 1.3, 
> 1.4, and 1.5 and perhaps define some way in the config.properties file to 
> specify system property guards for enabling/disabling various properties, so 
> that we can add all three values to the config.properties file, but only 
> enable the value corresponding to the appropriate execution platform at run 
> time.
> Of course, this is just one possible suggestion for a solution. Perhaps there 
> is a better one.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to