Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4791

VM ID map not cleared when parent of VM is detached

XMLWordPrintable

      Steps to Reproduce

      run the attached test case TestClearVmIdMap_zk4791.java

      Current Result

      test fails in 2 scenarios, where the vm-id-map is not empty after detaching the parent component of the vm comp

      Expected Result

      when a component is detached and a vm is destroyed the key should be removed from the vm-id-map

      Debug Information

      the map still links to the binder and related components, preventing them from being garbage collected

      Workaround

      detach the viewmodel component before the parent component

            DevChu DevChu
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: