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

Ambarish Rapte arapte at openjdk.org
Wed Apr 24 14:38:37 UTC 2024


On Wed, 24 Apr 2024 12:54:01 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:
> 
>   Re-order for more clearness

Sorry for jumping in little late.
I am reviewing the changes, shall test the fix with some usecases and update.

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

PR Comment: https://git.openjdk.org/jfx/pull/1442#issuecomment-2075101687


More information about the openjfx-dev mailing list