backport also test from JDK-8172967 JDK9 fix
1 file changed