Note that it uses the jdk.compiler module to parse the Java source code. The java binary version used must therefore be from a JDK (not JRE) with a version equal to or newer than the Java language ...
JDK 25 is an LTS release, the second on Oracle’s new two-year LTS cadence (after 21), and it lands with meaningful language ...