JDK-8273071 : SeparatorSkin: must remove child on dispose
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: openjfx16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-08-27
  • Updated: 2021-09-03
  • Resolved: 2021-09-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjfx18Fixed
Related Reports
Blocks :  
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

Comments
Changeset: 2267b115 Author: Jeanette Winzenburg <fastegal@openjdk.org> Date: 2021-09-03 10:07:22 +0000 URL: https://git.openjdk.java.net/jfx/commit/2267b115f907e7c9c447691569e48cf0b2b95029
03-09-2021