[
https://issues.apache.org/jira/browse/FELIX-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642456#action_12642456
]
YANG, BongYeol commented on FELIX-788:
--------------------------------------
Thank you. problem solved.
Note that maven-ipojo-plugin 1.1.0-SNAPSHOT should be used, I was confused
because of it.
> 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.