felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "German Vega (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FELIX-5056) Error in service dependency field injection, when accessed from an inner class
Date Fri, 25 Sep 2015 09:52:04 GMT

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

German Vega updated FELIX-5056:
-------------------------------
    Attachment:     (was: 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
>
> 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)

Mime
View raw message