[Rev 01] RFR: 8193800: TreeTableView selection changes on sorting

Jeanette Winzenburg fastegal at openjdk.java.net
Wed Jun 3 12:20:44 UTC 2020

On Wed, 3 Jun 2020 12:03:43 GMT, Jeanette Winzenburg <fastegal at openjdk.org> wrote:

>>> The algorithm looks correct to me for sorting. How much regression testing have you done for cases where rows or
>>> columns are inserted?
>> I have tested with a small TreeTableView of 15 rows of 3 levels and 3 columns.
>> Would it be enough to test with TreeTableView of ~500 rows of 5 levels, 10 columns ?
>> Update:  I am testing with 7 level of nested rows, with 10, 9, 7, 6, 5, 4, 3 number of children in each level
>> respectively. The fix works fine till level 3. But can observe issue with level 4 and further. Shall debug this more
>> and update.
> hmm .. TreeModificationEvent seems to have a different interpretation (than a list change) of _permutated_: its
> wasPermutated may return true even on a replace - that's why some tests are throwing a IllegalStateException before the
> fix.   The other way round: do we really want to introduce a singularity in selection handling after replace? The other
> selectionModels for virtualized controls try to keep the selectedItem/Index only.

ahh .. was wrong (note to self: run examples for all controls before commenting ;) - TableView also tries to keep all
selected state on replace with the same items in changed sequence, ListView doesn't (which then is the singularity
which might need a fix?).


PR: https://git.openjdk.java.net/jfx/pull/244

More information about the openjfx-dev mailing list