RFR: 8330462: StringIndexOutOfBoundException when typing anything into TextField [v24]
Andy Goryachev
angorya at openjdk.org
Fri Apr 26 23:35:15 UTC 2024
On Fri, 26 Apr 2024 22:58:37 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:
>
> Revert using utility method
Regression seems to be fixed. No differences in behavior doing a quick test with with TextField/TextArea and Narrator on Windows 11.
-------------
Marked as reviewed by angorya (Reviewer).
PR Review: https://git.openjdk.org/jfx/pull/1442#pullrequestreview-2025994582
More information about the openjfx-dev
mailing list