RFR: 8196065: ListChangeListener getRemoved() returns items that were not removed. [v8]
Ambarish Rapte
arapte at openjdk.java.net
Wed Jun 2 09:34:32 UTC 2021
On Sat, 29 May 2021 12:31:33 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
>> The documentation for `ObservableListBase.nextRemove` states that a single change always refers to the current state of the list, which likely means that multiple disjoint removed ranges need to be applied in order, otherwise the next change's `getFrom` doesn't refer to the correct index.
>>
>> `SelectedItemsReadOnlyObservableList` doesn't apply removals to `itemsRefList`, which means that subsequent removals will refer to the wrong index when retrieving the removed elements. This PR fixes the calculation of the current index.
>
> Michael Strauß has updated the pull request incrementally with one additional commit since the last revision:
>
> fix tests
I tested several scenarios with TreeTableView and ListView. It is behaving as expected.
I still need to review the code changes.
-------------
PR: https://git.openjdk.java.net/jfx/pull/478
More information about the openjfx-dev
mailing list