Tapestry
  1. Tapestry
  2. TAPESTRY-1761

TreeDataView's initialze() is not called

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1, 4.1.1, 4.1.2, 4.1.3
    • Fix Version/s: 4.1.6
    • Component/s: Contrib
    • Labels:
      None

      Description

      The TreeDataView has a method "public void initialize()" for resetting private members, but it seems it is not called when the component is returned to the pool.
      This causes a memory leak as m_objTreeRowObject can hold a reference to a TreeRowObject Object and thus to an entire tree structure.

      I propose that the component implement the PageDetachListener interface and calls initialize:

      public void pageDetached(PageEvent event)

      { initialize(); }

      Thank you

        Activity

        Jacob Poder created issue -
        Andreas Andreou made changes -
        Field Original Value New Value
        Fix Version/s 4.1 [ 12310632 ]
        Fix Version/s 4.1.3 [ 12312516 ]
        Fix Version/s 4.1.1 [ 12312021 ]
        Fix Version/s 4.1.4 [ 12312763 ]
        Fix Version/s 4.1.2 [ 12312202 ]
        Jesse Kuhnert made changes -
        Fix Version/s 4.1.5 [ 12312935 ]
        Fix Version/s 4.1.6 [ 12312957 ]
        Hide
        Andreas Andreou added a comment -

        thx

        Show
        Andreas Andreou added a comment - thx
        Andreas Andreou made changes -
        Resolution Fixed [ 1 ]
        Assignee Andreas Andreou [ andyhot ]
        Status Open [ 1 ] Resolved [ 5 ]
        Mark Thomas made changes -
        Workflow jira [ 12413393 ] Default workflow, editable Closed status [ 12568466 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568466 ] jira [ 12591517 ]

          People

          • Assignee:
            Andreas Andreou
            Reporter:
            Jacob Poder
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development