[JBoss JIRA] Created: (JBOSGI-389) Bundle classloader does not implement BundleReference
by Thomas Diesler (JIRA)
Bundle classloader does not implement BundleReference
------------------------------------------------------
Key: JBOSGI-389
URL: https://jira.jboss.org/browse/JBOSGI-389
Project: JBoss OSGi
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Core Framework
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: JBossOSGi 1.0.x
This is expected to work
Class<?> clazz = bundle.loadClass(ObjectA.class.getName());
ClassLoader classLoader = clazz.getClassLoader();
assertTrue("Instance of BundleReference", classLoader instanceof BundleReference);
Bundle result = FrameworkUtil.getBundle(clazz);
assertEquals(bundle, result);
The returned ClassLoader is however an instance of ModuleLoader
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 1 month
[JBoss JIRA] Created: (JBOSGI-432) Fragments do not have a seperate ProtectionDomain
by Thomas Diesler (JIRA)
Fragments do not have a seperate ProtectionDomain
-------------------------------------------------
Key: JBOSGI-432
URL: https://issues.jboss.org/browse/JBOSGI-432
Project: JBoss OSGi
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: JBossOSGi 1.0.0 Beta10
Fragments are bundles that can be attached to one or more host bundles by the Framework. Attaching is done as part of resolving: the Framework appends
the relevant definitions of the fragment bundles to the host's definitions before the host is resolved. Fragments are therefore treated as part of the host, including any permitted headers; they must not have their own class loader though fragments must have their own Protection Domain.
Currently, fragments are modules with their own ClassLoader
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 1 month