Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-788

Failed to create object that extends super class with BundleContext argument

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • iPOJO-1.0.0
    • iPOJO-1.2.0
    • iPOJO
    • None
    • JDK 1.6
      Felix 1.2.1
      iPOJO 1.0.0 and 0.8.0

    Description

      In this situation:

      Bundle 1:
      public interface I {
      }

      public abstract class A implements I {
      }

      public abstract class B extends A implements Runnable {
      public B(BundleContext context) {
      }
      }

      Bundle 2:

      public class C extends B {
      public B(BundleContext context)

      { super(context); }

      }

      I used org.apache.felix.iPOJO.Factory.createComponentInstance(null);
      But iPOJO failed to create instance like this:

      [C] ERROR: [instance.name] createInstance -> The POJO constructor invocation failed : (class: C, method: <init> signature: (Lorg/apache/felix/ipojo/InstanceManager;Lorg/osgi/framework/BundleContext;)V) Expecting to find object/array on stack

      Attachments

        Activity

          People

            clement.escoffier Clement Escoffier
            xeraph YANG, BongYeol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: