Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8220012

Accordion control holds reference to child pane after it is removed

XMLWordPrintable

    • x86_64
    • generic

      A DESCRIPTION OF THE PROBLEM :
      he Accordion control keeps a reference to its first TitledPane even after all panes have been removed, which prevents it to be collected, alongside everything attached to that pane.

      The reason for that is the skin for the control explicitly keeps a reference to it, so that it can apply and remove the "first-titled-pane" css style class.
      It is kept in sync with the list of panes in the control through the use of a ListChangeListener, however the listener's implementation never severs the reference after the last TitlePane has been removed.

      More detail about the issue can be found on Github: https://github.com/javafxports/openjdk-jfx/issues/391


      FREQUENCY : always


            aghaisas Ajit Ghaisas
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: