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

Error in service dependency field injection, when accessed from an inner class

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: ipojo-runtime-1.12.1
    • Fix Version/s: None
    • Component/s: iPOJO
    • Labels:
      None

      Description

      A component defines a simple mandatroy dependency, with an injected field.

      When the field is accessed in one of the methods of an inner class of the component, it is not always updated when the target of the dependency changes.

      The error doesn't happen all the time, work well for some dependencies. For a given dependency, sometimes it seems to work depending on the invoking thread.

      WORKAROUND : define a private method in the component to acces the field, and invoke this method from the inner class (instead of accessing the field directly)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gvega German Vega
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: