Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1761

TreeDataView's initialze() is not called

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1, 4.1.1, 4.1.2, 4.1.3
    • 4.1.6
    • Contrib
    • 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

      Attachments

        Activity

          People

            andyhot Andreas Andreou
            jkristensen Jacob Poder
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: