RFR: 8330462: StringIndexOutOfBoundException when typing anything into TextField [v14]

Oliver Kopp duke at openjdk.org
Tue Apr 23 11:35:51 UTC 2024


> Fixes https://bugs.openjdk.org/browse/JDK-8330462.
> 
> If the parameter `maxLength` is larger than `Integer.MAX_VALUE - start`, then an addition of `start` to it leads to a negative value. This is "fixed" by using `Math.max` comparing the `maxLength` and `maxLength + start`.

Oliver Kopp has updated the pull request incrementally with two additional commits since the last revision:

 - Try to use StubToolkit
 - Refone comment

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

Changes:
  - all: https://git.openjdk.org/jfx/pull/1442/files
  - new: https://git.openjdk.org/jfx/pull/1442/files/ab651984..9fdc5c64

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jfx&pr=1442&range=13
 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=1442&range=12-13

  Stats: 164 lines in 3 files changed: 102 ins; 59 del; 3 mod
  Patch: https://git.openjdk.org/jfx/pull/1442.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1442/head:pull/1442

PR: https://git.openjdk.org/jfx/pull/1442


More information about the openjfx-dev mailing list