RFR: 8302797: ArrayIndexOutOfBoundsException in TextRun.getWrapIndex() [v2]

Phil Race prr at openjdk.org
Tue Mar 7 22:03:16 UTC 2023


The message from this sender included one or more files
which could not be scanned for virus detection; do not
open these files unless you are certain of the sender's intent.

----------------------------------------------------------------------
On Tue, 7 Mar 2023 21:29:20 GMT, Phil Race <prr at openjdk.org> wrote:

>> modules/javafx.graphics/src/main/java/com/sun/javafx/text/TextRun.java line 288:
>> 
>>> 286:              */
>>> 287:             /* Not need to check for compact as bidi disables the simple case */
>>> 288:             for (int gi = glyphCount; gi <= 0; gi--) {
>> 
>> should we also correct the comment on line 288?
>
> oops. I think I see the problem.
> And I had noticed the typo in the existing comment and can correct that ..

Updated to look at the right segment !

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

PR: https://git.openjdk.org/jfx/pull/1055


More information about the openjfx-dev mailing list