[OpenJDK 2D-Dev] RFR: 8242004: TextLayout throws Exception with a non-invertible transform

Philip Race philip.race at oracle.com
Thu Apr 9 19:19:12 UTC 2020


Any takers ?

-phil

On 4/3/20, 1:29 PM, Philip Race wrote:
> bug: https://bugs.openjdk.java.net/browse/JDK-8242004
> webrev: https://bugs.openjdk.java.net/browse/JDK-8242004
>
> Several code paths can end up in the method shown in the bug report
> with a non-invertible transform.
>
> As much as possible, we can prevent them reaching here by checking in 
> the rendering code.
>
> If we do get here, which should now be possible only when directly 
> creating
> a TextLayout, we can use a default TX. Subsequent rendering of the 
> TextLayout
> will be handled by the other checks being added.
>
> A regression test is provided which checks various APIs to make sure no
> exception is thrown.
>
> -phil.
>
>


More information about the 2d-dev mailing list