dev@glassfish.java.net

Re: broken Felix classloader?

From: Richard S. Hall <heavy_at_ungoverned.org>
Date: Wed, 22 Apr 2009 10:36:18 -0400

On 4/22/09 12:48 AM, Bill Shannon wrote:
> Richard S. Hall wrote:
>> Lloyd,
>>
>> A bundle is only given implicit access to classes in java.* packages.
>> All other packages must be imported. This includes javax.* packages.
>> The reason is because javax packages are extensions. It is possible
>> for them not to be there or for bundles to container newer versions.
>> This would not be the case for java.* packages, which must be loaded
>> by the boot class loader.
>
> That's not correct.
>
> Components of the JDK must always be available.

In OSGi, classes outside of java.* are only available if the bundle
imports them.

-> richard

>
> There's a small list of packages for which applications are allowed
> to provide newer versions.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>