Uploaded image for project: 'JBoss Modules'
  1. JBoss Modules
  2. MODULES-34

ModuleLoader does not implement BundleReference

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Beta5
    • None
    • None
    • None

      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 ModuleLoader is not an instance of BundleReference

              tdiesler@redhat.com Thomas Diesler
              tdiesler@redhat.com Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: