JDK-8193800 : TreeTableView selection changes on sorting
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 8u131,9,openjfx11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-12-19
  • Updated: 2020-11-13
  • Resolved: 2020-06-29
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.
JDK 8 Other
8u261Fixed openjfx11.0.9Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
In a multi-column TreeTableView using the built-in JavaFX sorting solution 
causing the selection model's selected index and selected item properties' 
change.

This is continuation of the bug JDK-8185635 to get 'Issue 1' listed in JDK-8185635 fixed in 11 or asap. Note: 'Issue 2' listed in the JDK-8185635 already fixed in JDK9.
Comments
Changeset: 2ca509a1 Author: Ambarish Rapte <arapte@openjdk.org> Date: 2020-06-29 05:48:19 +0000 URL: https://git.openjdk.java.net/jfx/commit/2ca509a1
29-06-2020

There are 2 parts to it 1) Exception and 2) selection code (on sorting) itself is wrong 1 (Exception) is already fixed since JDK9 and back-porting is also not straight forward and may be high effort, i will let Ajit comment on it. 2 (Persistence of selection on sorting) is open for both 12 and 8u, so fix in 12 and backport is possible, this is high effort, requires design change.
18-11-2018

Praveen, For more detailed description of the issues - please refer comment by Fairoz on JDK-8185635. I am planning to address the exception (Issue 1) as noted in description of this bug for openjfx12 & 8u Issue 2 (TreeTableView selection changes on sorting action) exists in both - openjfx12 & 8u - It is more involved and might need re-designing as suggested by Jonathan in a comment on JDK-8185635.
09-10-2018

Update is - it is still work in progress. The row selection is getting cleared multiple times on sorting. Trying to understand why such multiple invocations needed in first place?
04-10-2018