[Rev 03] RFR: 8246348: Crash in libpango on Ubuntu 20.04 with some unicode chars

Kevin Rushforth kcr at openjdk.java.net
Mon Jun 15 13:33:22 UTC 2020

On Mon, 15 Jun 2020 09:08:14 GMT, Johan Vos <jvos at openjdk.org> wrote:

>> This addresses https://bugs.openjdk.java.net/browse/JDK-8246348
> Johan Vos has updated the pull request incrementally with one additional commit since the last revision:
>   Add test for testing Pango behavior with Character(0) and surrogate pairs

tests/system/src/test/java/test/com/sun/javafx/font/freetype/PangoTest.java line 88:

> 87:             if (!launchLatch.await(TIMEOUT, TimeUnit.MILLISECONDS)) {
> 88:                 throw new AssertionFailedError("Timeout waiting for Application to launch");
> 89:             }

Somehow this comment was dropped from my previous comments...

If you add `throws Exception` to this method, then the entire try/catch block can be replaced with:
        assertTrue("Timeout waiting for Application to launch", launchLatch.await(TIMEOUT, TimeUnit.MILLISECONDS));


PR: https://git.openjdk.java.net/jfx/pull/249

More information about the openjfx-dev mailing list