Richard S. Hall wrote:
Sahoo wrote:
I was under the impression that the parent class loader of a bundle class loader is the class loader that was used to launch Felix. Looks like this is not true. Felix is setting the system class loader as the parent class loader. Can I change this behavior? If yes, how? I am using 1.0.3 version.

Felix doesn't appear to set it at all, which means it uses the default value for parent, which is the system class loader. There is no way to change this behavior. I don't believe that the spec says which class loader should be used as the parent.

-> richard

I would have to agree that the spec does not mandate this, but won't it be nice to allow users to set the parent class loader as per their requirement? Defaulting to system classloader can be very dangerous at times. More over, ability to specify this is better, I believe. Equinox allows users to configure the parent [1].

Thanks,
Sahoo
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to