RFR: 8330462: StringIndexOutOfBoundException when typing anything into TextField [v20]
Oliver Kopp
duke at openjdk.org
Wed Apr 24 12:54:01 UTC 2024
> 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
-------------
Changes:
- all: https://git.openjdk.org/jfx/pull/1442/files
- new: https://git.openjdk.org/jfx/pull/1442/files/974bf468..1159e3dd
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jfx&pr=1442&range=19
- incr: https://webrevs.openjdk.org/?repo=jfx&pr=1442&range=18-19
Stats: 6 lines in 1 file changed: 3 ins; 3 del; 0 mod
Patch: https://git.openjdk.org/jfx/pull/1442.diff
Fetch: git fetch https://git.openjdk.org/jfx.git pull/1442/head:pull/1442
PR: https://git.openjdk.org/jfx/pull/1442
More information about the openjfx-dev
mailing list