Skip to content

8359020: TabObservableList.reorder changes content of filtered list#2164

Closed
Maran23 wants to merge 1 commit into
openjdk:masterfrom
Maran23:8359020-TabObservableList.reorder-changes-content-of-filtered-list-
Closed

8359020: TabObservableList.reorder changes content of filtered list#2164
Maran23 wants to merge 1 commit into
openjdk:masterfrom
Maran23:8359020-TabObservableList.reorder-changes-content-of-filtered-list-

Conversation

@Maran23

@Maran23 Maran23 commented May 3, 2026

Copy link
Copy Markdown
Member

Fixes that the TabObservableList creates wrong permutation change events. As they are wrong, listeners that rely on the change events like FilteredList will get confused and do the wrong things.

I was wondering why the TabPaneSkin was not affected, as it installs a listener on the tabs.
Turns out this is because the code path is not triggered when the tabs are reordered by dragging as can be seen here:

while (c.next()) {
if (c.wasPermutated()) {
if (dragState != DragState.REORDER) {
TabPane tabPane = getSkinnable();

So this issue is rather rare and limited to listeners installed by the developer (and interested in permutation events).
Or using a FilteredList with the tabs, which will install such a listener as well.



Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)

Issue

  • JDK-8359020: TabObservableList.reorder changes content of filtered list (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/2164/head:pull/2164
$ git checkout pull/2164

Update a local copy of the PR:
$ git checkout pull/2164
$ git pull https://git.openjdk.org/jfx.git pull/2164/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2164

View PR using the GUI difftool:
$ git pr show -t 2164

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/2164.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper

bridgekeeper Bot commented May 3, 2026

Copy link
Copy Markdown

👋 Welcome back mhanl! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk

openjdk Bot commented May 3, 2026

Copy link
Copy Markdown

@Maran23 This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8359020: TabObservableList.reorder changes content of filtered list

Reviewed-by: angorya, mstrauss

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 11 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk Bot added the rfr Ready for review label May 3, 2026
@openjdk

openjdk Bot commented May 3, 2026

Copy link
Copy Markdown

The total number of required reviews for this PR has been set to 2 based on the presence of this label: rfr. This can be overridden with the /reviewers command.

@mlbridge

mlbridge Bot commented May 3, 2026

Copy link
Copy Markdown

Webrevs

@andy-goryachev-oracle andy-goryachev-oracle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel the code might have been simpler, but it does fix the issue, which is ok with me. The new test fails in master and passes with the fix. Also tested with the updated monkey tester
https://github.com/andy-goryachev-oracle/MonkeyTest

(stdout shows the original tab list + filtered one)

@andy-goryachev-oracle

Copy link
Copy Markdown
Contributor

@Ziad-Mid could you be the second reviewer please?

@openjdk openjdk Bot added the ready Ready to be integrated label May 23, 2026
@Maran23

Maran23 commented May 24, 2026

Copy link
Copy Markdown
Member Author

/integrate

@openjdk

openjdk Bot commented May 24, 2026

Copy link
Copy Markdown

Going to push as commit d1bb3e3.
Since your change was applied there have been 12 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk Bot added the integrated Pull request has been integrated label May 24, 2026
@openjdk openjdk Bot closed this May 24, 2026
@openjdk openjdk Bot removed ready Ready to be integrated rfr Ready for review labels May 24, 2026
@openjdk

openjdk Bot commented May 24, 2026

Copy link
Copy Markdown

@Maran23 Pushed as commit d1bb3e3.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@Maran23
Maran23 deleted the 8359020-TabObservableList.reorder-changes-content-of-filtered-list- branch July 3, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

3 participants