> This PR fixes JDK-8176270 by clamping the end index of the selected text to > the length of the text.
Robert Lichtenberger has updated the pull request incrementally with one additional commit since the last revision: 8176270: Adding ChangeListener to TextField.selectedTextProperty causes StringOutOfBoundsException This fix will prevent the StringOutOfBoundsException by clearing the selection temporarily. ------------- Changes: - all: https://git.openjdk.java.net/jfx/pull/138/files - new: https://git.openjdk.java.net/jfx/pull/138/files/e78e8793..f5209e05 Webrevs: - full: https://webrevs.openjdk.java.net/jfx/138/webrev.01 - incr: https://webrevs.openjdk.java.net/jfx/138/webrev.00-01 Stats: 46 lines in 3 files changed: 40 ins; 1 del; 5 mod Patch: https://git.openjdk.java.net/jfx/pull/138.diff Fetch: git fetch https://git.openjdk.java.net/jfx pull/138/head:pull/138 PR: https://git.openjdk.java.net/jfx/pull/138