felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aygalinc Colin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-5314) Handler can not distinguish calls to onSet method caused by Fix FELIX-4072
Date Fri, 29 Jul 2016 12:34:20 GMT
Aygalinc Colin created FELIX-5314:
-------------------------------------

             Summary: 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


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)

Mime
View raw message