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

Error in method managedInjectedObject of InstanceManager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • ipojo-runtime-1.12.1
    • None
    • iPOJO
    • Ubuntu

    Description

      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.

      Attachments

        1. Patch_FELIX_5278.patch
          0.9 kB
          Aygalinc Colin

        Activity

          People

            Unassigned Unassigned
            colin.aygalinc Aygalinc Colin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified