workaround https://bugs.openjdk.java.net/browse/JDK-8054478