Fixing JDK-8309935 and providing a test for it. -------------
Commit messages: - Fixing JDK-8309935 and providing a test for it. Changes: https://git.openjdk.org/jfx/pull/1152/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1152&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8309935 Stats: 93 lines in 2 files changed: 92 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jfx/pull/1152.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/1152/head:pull/1152 PR: https://git.openjdk.org/jfx/pull/1152