New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8241999: ChoiceBox: incorrect toggle selected for uncontained #200
Conversation
👋 Welcome back fastegal! A progress list of the required criteria for merging this PR into |
@aghaisas can you review this? It looks pretty simple so one reviewer should be enough, unless you spot something where you want a second pair of eyes. |
@kevinrushforth, I agree on single reviewer being enough for this change. |
@kleopatra This change now passes all automated pre-integration checks. When the change also fulfills all project specific requirements, type
Since the source branch of this PR was last updated there have been 7 commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid automatic rebasing, please merge As you do not have Committer status in this project, an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@aghaisas) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
/integrate |
@kleopatra |
/sponsor |
@aghaisas @kleopatra The following commits have been pushed to master since your change was applied:
Your commit was automatically rebased without conflicts. Pushed as commit 99f7747. |
The issue is that the toggles is not reliably unselected if an uncontained value is set.
The root is ChoiceBoxSelectionModel which doesn't update the index on selecting an uncontained item, in particular it fails to keep the invariant:
The fix here is to override select(item) to guarantee the assert.
Added/removed ignore from tests that failed before and pass after the fix. All other tests are passing before and after.
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jfx pull/200/head:pull/200
$ git checkout pull/200