felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall" <he...@ungoverned.org>
Subject Re: felix commons
Date Thu, 01 Jan 1970 00:00:00 GMT

That is incorrect. Bundles must import all referenced packages outside of java.*...this includes
all javax.* packages.

For those coming from Equinox, you might realize this since it delegates everything to the
parent by default, but this is not really recommended by the sepc.

I would assume that some pom files are excluding javax because they want to eliminate unnecessary
import that BND detects.

In short, if you use it you must import it.

-> richard

-----Original Message-----

From:  "Alin Dreghiciu" <adreghiciu@gmail.com>
Subj:  Re: felix commons
Date:  Thu 10. May 2007 6:51
Size:  604 bytes
To:  dev@felix.apache.org

You don't need to import them since the framework has to delegate to the
parent class loader as explained in 3.8.4 in osgi core specs.

Alin Dreghiciu

On 5/10/07, Hampel, Michael <michael.hampel@siemens.com> wrote:
> Hello,
> I have a question regarding the poms in Felix Commons.
> Some of these poms prohibit the import of javax packages by adding
> !javax.* to the <Import-Package> element,
> others are not doing it like avalon or log4j.
> Should I import  JRE classes or not - is this because they are loaded by
> the system bundle?
> Thanx in advance for any help,
> Michael

View raw message