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

Kevin Rushforth kcr at openjdk.org
Tue May 7 22:26:01 UTC 2024


On Tue, 7 May 2024 20:39:13 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`.
>
> Oliver Kopp has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update full name

Looks good. I confirm that the test passes on Windows and is skipped on macOS.

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

Marked as reviewed by kcr (Lead).

PR Review: https://git.openjdk.org/jfx/pull/1442#pullrequestreview-2044294496


More information about the openjfx-dev mailing list