RFR: 8273324: IllegalArgumentException: fromIndex(0) > toIndex(-1) after clear and select TableCell

Marius Hanl mhanl at openjdk.java.net
Sat Sep 4 11:23:54 UTC 2021

On Fri, 3 Sep 2021 21:17:11 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

> > Can we get a unit test for this case?
> This is a test that fails without the fix, and passes with the fix. However, there are no assertions, which is... strange. Once [JDK-8273336](https://bugs.openjdk.java.net/browse/JDK-8273336) is fixed, the test could validate the selection state.

That is still fine. I also don't like to write tests without at least one assertion, but there is not other way in JUnit4. I ended up writing a comment above the problematic call, e.g.: `// Should not throw an NPE.`


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

More information about the openjfx-dev mailing list