Hello, Please review the almost direct backport of https://bugs.openjdk.java.net/browse/JDK-8130242 to jdk8: http://cr.openjdk.java.net/~mcherkas/8130242/webrev/
The difference is only that code location in jdk8 and 9 is different. jdk9 changeset: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/74513e3d04b1jdk9 review: http://mail.openjdk.java.net/pipermail/awt-dev/2015-July/009606.html
Thanks, Mikhail.