RFR: 8176270: Adding ChangeListener to TextField.selectedTextProperty causes StringOutOfBoundsException

Kevin Rushforth kcr at openjdk.java.net
Thu Mar 5 18:02:34 UTC 2020


On Thu, 5 Mar 2020 17:01:25 GMT, Jeanette Winzenburg <fastegal at openjdk.org> wrote:

>> This PR fixes JDK-8176270 by clamping the end index of the selected text to the length of the text.
>
> why a second pr for the same issue (see https://github.com/openjdk/jfx/pull/73)? particularly one that doesn't do much more/else/better (than clamping, which isn't good enough)?

I have exactly the same question.

In general, it's better to work with the author of an existing PR instead of creating a new one. If the original PR #73 is completely stalled, then it might make sense, but not until then.

-------------

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


More information about the openjfx-dev mailing list