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)