felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sahoo (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-1193) Implement org.osgi.framework.bundle.parent from RFC 132
Date Wed, 08 Jul 2009 14:47:15 GMT

    [ https://issues.apache.org/jira/browse/FELIX-1193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12728729#action_12728729

Sahoo commented on FELIX-1193:

Yes, java.lang.Object.class.getClassLoader() returns null in Sun JDK. 

No, I didn't mean that. Does RFC #132 explicitly say the parent class loader should be null
or does it say it should be "bootstrap" classloader when user configures org.osgi.framework.bundle.parent=Constants.FRAMEWORK_BUNDLE_PARENT_BOOT?
I assumed it was the latter. What I wanted to say is that we could set the parent class loader
as java.lang.Object.class.getClassLoader() in all platforms when org.osgi.framework.bundle.parent==Constants.FRAMEWORK_BUNDLE_PARENT_BOOT.

Another way of getting hold of bootstrap classloader that I can think of is ClassLoader.getSystemClassLoader().getParent().getparent().
Someone using other JREs (like IBM JDK or Android) can confirm if this works or not.

> Implement org.osgi.framework.bundle.parent from RFC 132
> -------------------------------------------------------
>                 Key: FELIX-1193
>                 URL: https://issues.apache.org/jira/browse/FELIX-1193
>             Project: Felix
>          Issue Type: New Feature
>          Components: Framework, Specification compliance
>    Affects Versions: felix-1.8.0
>            Reporter: Richard S. Hall
>            Assignee: Richard S. Hall
>             Fix For: felix-2.0.0
> The new standard framework launching and embedding API introduced a property (org.osgi.framework.bundle.parent)
to configure the class loader used for boot delegation. We should modify Felix to support
this property.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message