felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "YANG, BongYeol (JIRA)" <j...@apache.org>
Subject [jira] Created: (FELIX-788) Failed to create object that extends super class with BundleContext argument
Date Thu, 23 Oct 2008 15:38:44 GMT
Failed to create object that extends super class with BundleContext argument
----------------------------------------------------------------------------

                 Key: FELIX-788
                 URL: https://issues.apache.org/jira/browse/FELIX-788
             Project: Felix
          Issue Type: Bug
          Components: iPOJO
    Affects Versions: iPOJO-1.0.0, iPOJO-0.8.0
         Environment: JDK 1.6
Felix 1.2.1
iPOJO 1.0.0 and 0.8.0
            Reporter: YANG, BongYeol
            Priority: Minor


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


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message