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

ProgressBarSkin: adds strong listener to control's width property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jfx14
    • jfx11
    • javafx

      see code in its contructor:

          public ProgressBarSkin(ProgressBar control) {
              super(control);
              ...
              control.widthProperty().addListener(observable -> updateProgress());
              ...
          }

      may lead to memory leaks if skin is updated. Options to fix are using a weakInvalidationListener or keep a reference to the strong which is removed in dispose or switch to using changeListener registered via skin's changeListener api

            fastegal Jeanette Winzenburg
            fastegal Jeanette Winzenburg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: