JDK-8246202 : ChoiceBoxSkin: misbehavior on switching skin, part 2
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: openjfx14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-05-31
  • Updated: 2020-10-15
  • Resolved: 2020-10-15
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
openjfx16Fixed
Related Reports
Blocks :  
Relates :  
Description
noted a new failing test:

    @Test @Ignore("left-over from choiceBoxSkin fix")
    public void testChoiceBoxSetItems() {
        ChoiceBox<String> box = new ChoiceBox<>();
        installDefaultSkin(box);
        replaceSkin(box);
        box.setItems(observableArrayList("one"));
        box.getItems().add("added");
    }

Overlooked the listener to box' items property when fixing JDK-8244657 .. needs to be removed in dispose along with the others ;)
Comments
Changeset: e856a58f Author: Jeanette Winzenburg <fastegal@openjdk.org> Date: 2020-10-15 08:43:39 +0000 URL: https://git.openjdk.java.net/jfx/commit/e856a58f
15-10-2020