You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2014/07/28 14:34:39 UTC

[jira] [Reopened] (FELIX-4586) A field must be volatile if methods are generated for a dynamic reference

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

Carsten Ziegeler reopened FELIX-4586:
-------------------------------------


> A field must be volatile if methods are generated for a dynamic reference
> -------------------------------------------------------------------------
>
>                 Key: FELIX-4586
>                 URL: https://issues.apache.org/jira/browse/FELIX-4586
>             Project: Felix
>          Issue Type: Bug
>          Components: SCR Tooling
>    Affects Versions: maven-scr-plugin 1.17.0, scr ant task 1.11.0, scr generator 1.10.0
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: maven-scr-plugin 1.18.0, scr ant task 1.12.0, scr generator 1.11.0
>
>
> If a field is used for a reference, like
> @Reference(policy=DYNAMIC)
> private Field myService
> and methods are generated for this dynamic reference, the field must be declared volatile. Otherwise updates to the field are not visible to the threads calling this component.
> If no methods are generated and the reference is dynamic, a warning should be generated if it is not volatile.



--
This message was sent by Atlassian JIRA
(v6.2#6252)