RFR: 8273324: IllegalArgumentException: fromIndex(0) > toIndex(-1) after clear and select TableCell [v3]
jpereda at openjdk.java.net
Tue Sep 7 14:45:38 UTC 2021
On Tue, 7 Sep 2021 10:40:01 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
>> This PR fixes the exception thrown by the sample code in (https://bugs.openjdk.java.net/browse/JDK-8273324), while retaining the incorrect behavior in the scenario described.
> Michael Strauß has updated the pull request incrementally with one additional commit since the last revision:
> fixed case of multi-selection across several rows
modules/javafx.controls/src/test/java/test/javafx/scene/control/TableViewTest.java line 386:
> 384: selectionModel.clearAndSelect(0, col1);
> 386: // The following asserts should work once JDK-8273336 is fixed:
@mstr2 About this issue, I've added a [comment](https://bugs.openjdk.java.net/browse/JDK-8273336?focusedCommentId=14445984&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14445984), in case you have some time to check it.
With my possible fix, these assertions work fine, but fail without it.
More information about the openjfx-dev