You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Clement Escoffier (JIRA)" <ji...@apache.org> on 2008/10/24 10:43:46 UTC
[jira] Resolved: (FELIX-788) Failed to create object that extends
super class with BundleContext argument
[ https://issues.apache.org/jira/browse/FELIX-788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clement Escoffier resolved FELIX-788.
-------------------------------------
Resolution: Fixed
Fix Version/s: iPOJO-1.2.0
Fixed at revision 707578.
The super constructor invocation can use the bundle context given in parameter of the constructor.
> 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-0.8.0, iPOJO-1.0.0
> Environment: JDK 1.6
> Felix 1.2.1
> iPOJO 1.0.0 and 0.8.0
> Reporter: YANG, BongYeol
> Assignee: Clement Escoffier
> Priority: Minor
> Fix For: iPOJO-1.2.0
>
>
> 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.