Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4586

A field must be volatile if methods are generated for a dynamic reference

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              cziegeler Carsten Ziegeler
              cziegeler Carsten Ziegeler
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: