On Thu, 18 Apr 2024 12:01:52 GMT, Oliver Kopp <[email protected]> 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 <[email protected]>
Committer: Kevin Rushforth <[email protected]>
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

Reply via email to