public boolean isJava10Compatible() {
    return javaSpecVersionNumber.getMajor() >= 10;
  }
Tells whether the Java version is compatible with Java 10.

@since 1.2
@return whether the Java version is compatible with Java 10
spock-core/src/main/java/spock/util/environment/Jvm.java