public boolean isJava22() {
    return "22".equals(javaSpecVersion);
  }
Tells whether the Java version is 22.

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