[jboss-osgi-issues] [JBoss JIRA] Created: (JBOSGI-390) ModuleLoader does not implement BundleReference

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Wed Sep 8 08:39:50 EDT 2010


ModuleLoader does not implement BundleReference 
------------------------------------------------

                 Key: JBOSGI-390
                 URL: https://jira.jboss.org/browse/JBOSGI-390
             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

        


More information about the jboss-osgi-issues mailing list