RFR: 8198336: java/awt/FontMetrics/FontCrash.java fails in headless mode

Sergey Bylokhov serb at openjdk.java.net
Wed Oct 20 07:04:06 UTC 2021


On Wed, 20 Oct 2021 04:12:46 GMT, Phil Race <prr at openjdk.org> wrote:

> The code this test exercises is very obsolete. So this removes the test that triggers it along with that code.

src/java.desktop/windows/classes/sun/awt/windows/WToolkit.java line 696:

> 694:             && ((SunFontManager) fm).usePlatformFontMetrics()) {
> 695:             return WFontMetrics.getFontMetrics(font);
> 696:         }

The whole method can be removed? it is identical to the parent now.

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

PR: https://git.openjdk.java.net/jdk/pull/6027



More information about the client-libs-dev mailing list