RFR: 8341670: [Text, TextFlow] Public API for Text Layout Info [v25]

Andy Goryachev angorya at openjdk.org
Fri May 2 17:13:55 UTC 2025


On Thu, 1 May 2025 18:54:53 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> Andy Goryachev has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   sealed
>
> modules/javafx.graphics/src/main/java/javafx/scene/text/CaretInfo.java line 60:
> 
>> 58:      * @return the bounds of the caret segment
>> 59:      * @throws IndexOutOfBoundsException if the index is out of range
>> 60:      *     {@code (index < 0 || index > getSegmentCount())}
> 
> Shouldn't this be `>= getSegmentCount()`.

(hangs head in shame)

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1596#discussion_r2071913079


More information about the openjfx-dev mailing list