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

Error in method managedInjectedObject of InstanceManager

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            colin.aygalinc Aygalinc Colin

            Dates

              Created:
              Updated:

              Time Tracking

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

                Slack

                  Issue deployment