You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2019/01/14 16:10:00 UTC

[jira] [Updated] (FELIX-6028) osgicheck-maven-plugin: Implement checks for DS field injection

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

Konrad Windszus updated FELIX-6028:
-----------------------------------
    Summary: osgicheck-maven-plugin: Implement checks for DS field injection  (was: Implement rules for DS field injection)

> osgicheck-maven-plugin: Implement checks for DS field injection
> ---------------------------------------------------------------
>
>                 Key: FELIX-6028
>                 URL: https://issues.apache.org/jira/browse/FELIX-6028
>             Project: Felix
>          Issue Type: Improvement
>          Components: Tooling
>    Affects Versions: osgicheck-maven-plugin 0.1.0
>            Reporter: Konrad Windszus
>            Priority: Major
>
> According to OSGi R7 Compendium 112.3.9.1
> {quote}If the field is declared with the final modifier, SCR must log an error message with the Log Service, if
> present, and the field must not be modified.{quote}
> and
> {quote}
> For a dynamic reference, the field must be declared with the volatile modifier so that field value
> changes made by SCR are visible to other threads. If the field is not declared with the volatile modifier,
> SCR must log an error message with the Log Service, if present, and the field must not be modified.
> {quote}
> Both issues should be detected by the osgicheck-maven-plugin at build time.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)