-
Bug
-
Resolution: Unresolved
-
P3
-
jfx16
This scenario was identified while fixing JDK-8244075.
An accelerator of MenuItem should get removed when a Control is removed from Scene and it's ContextMenu is set to null.
Currently the accelerator is not removed and it gets fired if that Control is added back to Scene.
This issue is fixed for Button, but occurs for other Controls.
A test is already included in AcceleratorParameterizedTest
Test name: testAcceleratorShouldNotGetFiredWhenControlsIsRemovedFromSceneThenContextMenuIsSetToNullAndControlIsAddedBackToScene().
The test passes for Button but fails for other controls (Tab, TableColumn, TreeTableColumn).
An accelerator of MenuItem should get removed when a Control is removed from Scene and it's ContextMenu is set to null.
Currently the accelerator is not removed and it gets fired if that Control is added back to Scene.
This issue is fixed for Button, but occurs for other Controls.
A test is already included in AcceleratorParameterizedTest
Test name: testAcceleratorShouldNotGetFiredWhenControlsIsRemovedFromSceneThenContextMenuIsSetToNullAndControlIsAddedBackToScene().
The test passes for Button but fails for other controls (Tab, TableColumn, TreeTableColumn).
- relates to
-
JDK-8283449 TabPane/Tab memory leak
- Open
-
JDK-8244075 Accelerator of ContextMenu's MenuItem is not removed when ContextMenu is removed from Scene
- Resolved