JDK-8154506 : SelectedItems list is tripped up by cell multiple selection
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-04-19
  • Updated: 2021-05-26
  • Resolved: 2016-04-20
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 9
9Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
After the changes in JDK-8154216, it became apparent that when cell-based multiple selection was enabled, we would see index out of bounds exceptions as the number of changes in the selectedCells list would be greater than the number of items (e.g. imagine a table with 3 columns and 4 rows - selecting all would result in 12 selected cells, when there are only 4 rows).

In these cases we need to properly map from cells to distinct indices.
Comments
Changeset: http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/f7ef5a9cb9da
20-04-2016