[Rev 03] RFR: WIP: 8176270: Adding ChangeListener to TextField.selectedTextProperty causes StringOutOfBoundsException

Robert Lichtenberger rlichten at openjdk.java.net
Wed May 27 13:33:35 UTC 2020


> 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 changes the selectedText property from a direct binding to a property
  that can be updated manually after text AND selection change have been processed.

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

Changes:
  - all: https://git.openjdk.java.net/jfx/pull/138/files
  - new: https://git.openjdk.java.net/jfx/pull/138/files/54eacb41..6f10355d

Webrevs:
 - full: https://webrevs.openjdk.java.net/jfx/138/webrev.03
 - incr: https://webrevs.openjdk.java.net/jfx/138/webrev.02-03

  Stats: 70 lines in 2 files changed: 42 ins; 15 del; 13 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


More information about the openjfx-dev mailing list