felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-4586) A field must be volatile if methods are generated for a dynamic reference
Date Mon, 28 Jul 2014 12:36:43 GMT

    [ https://issues.apache.org/jira/browse/FELIX-4586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14076186#comment-14076186
] 

Carsten Ziegeler commented on FELIX-4586:
-----------------------------------------

Hmm, right I agree. I'll remove that part completely then

> 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)

Mime
View raw message