You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Aygalinc Colin (JIRA)" <ji...@apache.org> on 2016/07/29 13:09:20 UTC

[jira] [Updated] (FELIX-5314) Handler can not distinguish calls to onSet method caused by Fix FELIX-4072

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

Aygalinc Colin updated FELIX-5314:
----------------------------------
    Attachment: Patch_FELIX_5314.patch

> Handler can not distinguish calls to onSet method caused by Fix FELIX-4072
> --------------------------------------------------------------------------
>
>                 Key: FELIX-5314
>                 URL: https://issues.apache.org/jira/browse/FELIX-5314
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: ipojo-runtime-1.12.1
>            Reporter: Aygalinc Colin
>         Attachments: Patch_FELIX_5314.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> OnSet and OnGet are always called with the a non null pojo object.
> Or documentation notifies that onSet method can be called with a null pojo object in case of the value is modified by a Handler. This call is executed at line  1229 in InstanceManager : list[i].onSet(pojo, fieldName, result);.
> I recommand to fix this by: list[i].onSet(null, fieldName, result); .
> It is useful to distinguish the two case of call to onSet method because call on onGet method can have side effect to call th onSet method of the same handler and caused weird behavior.
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)