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

SeparatorSkin: must remove child on dispose

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: openjfx16
    • Fix Version/s: openjfx18
    • Component/s: javafx
    • Labels:

      Description

      Skin adds the line but never removes it.

      failing test:

          @Test
          public void testControlChildren() {
              installDefaultSkin(control);
              int childCount = control.getChildrenUnmodifiable().size();
              replaceSkin(control);
              assertEquals("skin must remove direct children that it has added",
                      childCount, control.getChildrenUnmodifiable().size());
          }
          
      fix: remove in dispose

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fastegal Jeanette Winzenburg
              Reporter:
              fastegal Jeanette Winzenburg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: