Integrated: 8330462: StringIndexOutOfBoundException when typing anything into TextField
Oliver Kopp
duke at openjdk.org
Wed May 8 12:51:04 UTC 2024
On Thu, 18 Apr 2024 12:01:52 GMT, Oliver Kopp <duke at openjdk.org> wrote:
> 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`.
This pull request has now been integrated.
Changeset: d3da033a
Author: Oliver Kopp <kopp.dev at gmail.com>
Committer: Kevin Rushforth <kcr at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/d3da033a2dd5c287733545935242a8d1f71c0554
Stats: 147 lines in 5 files changed: 142 ins; 0 del; 5 mod
8330462: StringIndexOutOfBoundException when typing anything into TextField
Reviewed-by: angorya, kcr, arapte
-------------
PR: https://git.openjdk.org/jfx/pull/1442
More information about the openjfx-dev
mailing list