This has been fixed upstream in JDK8 and JDK9.
Upstream bug: https://bugs.openjdk.java.net/browse/JDK-8012351 JDK8 commit: http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/50c530973203 JDK9 commit: http://hg.openjdk.java.net/jdk9/client/jdk/rev/5ff0d5f1a97f
This has been fixed upstream in JDK8 and JDK9.
Upstream bug: https:/ /bugs.openjdk. java.net/ browse/ JDK-8012351 hg.openjdk. java.net/ jdk8u/jdk8u/ jdk/rev/ 50c530973203 hg.openjdk. java.net/ jdk9/client/ jdk/rev/ 5ff0d5f1a97f
JDK8 commit: http://
JDK9 commit: http://