[ 
https://issues.apache.org/jira/browse/FELIX-5056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

German Vega updated FELIX-5056:
-------------------------------
    Attachment: patch.iPOJO.dependency.inner

> Error in service dependency field injection, when accessed from an inner class
> ------------------------------------------------------------------------------
>
>                 Key: FELIX-5056
>                 URL: https://issues.apache.org/jira/browse/FELIX-5056
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: ipojo-runtime-1.12.1
>            Reporter: German Vega
>         Attachments: patch.iPOJO.dependency.inner
>
>
> 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)



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

Reply via email to