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

Handler can not distinguish calls to onSet method caused by Fix FELIX-4072

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: ipojo-runtime-1.12.1
    • Fix Version/s: None
    • Component/s: iPOJO
    • Labels:
      None

      Description

      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.

        Attachments

        1. Patch_FELIX_5314.patch
          2 kB
          Aygalinc Colin

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              colin.aygalinc Aygalinc Colin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified