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

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