I can't reproduce this though - used exactly the same JVMs (on Windows): > gradlew :lucene:distribution.tests:compileTestJava --rerun-tasks --console=plain Generating gradle.properties ... > Task :altJvmWarning NOTE: Alternative java toolchain will be used for compilation and tests: Project will use 11 (IBM JDK 11.0.20.1+1, home at: c:\_tmp\jdk-11.0.20.1+1) Gradle runs with 11 (Eclipse Temurin JDK 11.0.21+9, home at: C:\_tmp\jdk-11.0.21+9) ... > Task :lucene:distribution.tests:compileJava NO-SOURCE > Task :lucene:distribution.tests:classes UP-TO-DATE > Task :lucene:distribution.tests:compileTestJava
BUILD SUCCESSFUL in 23s 5 actionable tasks: 5 executed On main branch it works, no idea why: > O thought it's because of this: https://github.com/apache/lucene/commit/2e12a35c876a but I don't think so... seems to work for me on Windows on branch_9x just fine? D. >