Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
maven-scr-plugin 1.17.0, scr ant task 1.11.0, scr generator 1.10.0
-
None
Description
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.
Attachments
Issue Links
- relates to
-
FELIX-5139 SCR logs errors for reference but works as expected
- Resolved