[jboss-osgi-issues] [JBoss JIRA] Resolved: (JBOSGI-389) Bundle classloader does not implement BundleReference
Thomas Diesler (JIRA)
jira-events at lists.jboss.org
Thu Dec 16 06:44:18 EST 2010
[ https://issues.jboss.org/browse/JBOSGI-389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Diesler resolved JBOSGI-389.
-----------------------------------
Fix Version/s: JBossOSGi 1.0.0 Beta10
(was: JBossOSGi 1.0.0 Beta11)
Resolution: Done
Done
https://github.com/jbosgi/jbosgi-framework/commit/b2ed272bbdb848640c5f287303a60fe6db626977
> Bundle classloader does not implement BundleReference
> ------------------------------------------------------
>
> Key: JBOSGI-389
> URL: https://issues.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.0 Beta10
>
>
> 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-osgi-issues
mailing list