Integrated: 8302797: ArrayIndexOutOfBoundsException in TextRun.getWrapIndex()
Phil Race
prr at openjdk.org
Thu Mar 9 21:01:06 UTC 2023
On Tue, 7 Mar 2023 19:54:15 GMT, Phil Race <prr at openjdk.org> wrote:
> This fixes an the AIOOBE when finding a line break point in RTL laid out glyphs.
> The comment in the bug report explains how we can end up trying to find an unachievable break point and yet there's no "stop" on the search when we've run out of glyphs so hence the exception.
>
> The fix uses a different method to choose a break point.
>
> A system test has been supplied which will fail on macOS (even with standard macOS fonts, not just the Noto Sans Arabic) unless the fix is applied.
This pull request has now been integrated.
Changeset: 8cda7bc6
Author: Phil Race <prr at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/8cda7bc6a65893edb7ce6c2b9624d075412ed4ab
Stats: 229 lines in 2 files changed: 222 ins; 4 del; 3 mod
8302797: ArrayIndexOutOfBoundsException in TextRun.getWrapIndex()
Reviewed-by: angorya, kcr
-------------
PR: https://git.openjdk.org/jfx/pull/1055
More information about the openjfx-dev
mailing list