You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Aygalinc Colin (JIRA)" <ji...@apache.org> on 2016/06/08 09:54:21 UTC

[jira] [Created] (FELIX-5278) Error in method managedInjectedObject of InstanceManager

Aygalinc Colin created FELIX-5278:
-------------------------------------

             Summary: Error in method managedInjectedObject of InstanceManager
                 Key: FELIX-5278
                 URL: https://issues.apache.org/jira/browse/FELIX-5278
             Project: Felix
          Issue Type: Bug
          Components: iPOJO
    Affects Versions: ipojo-runtime-1.12.1
         Environment: Ubuntu 
            Reporter: Aygalinc Colin


In InstanceManager.java, the method managedInjectedObject at line 1016 can throw an java.lang.NoSuchMethodException in case of extension of the InstanceManager.

I recommend to change the line 1016:
Method setIM = m_clazz.getDeclaredMethod("_setInstanceManager", new Class[]{this.getClass()});
by :    
Method setIM = m_clazz.getDeclaredMethod("_setInstanceManager", new new Class[]{InstanceManager.class});

because iPOJO manipulation always produces a _setInstanceManager method with an InstanceManager.class attribute.

 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)