See https://github.com/scala-native/scala-native/issues/2445 The following bit of code was changed to allow testing on JDK 11+.