Closed beikov closed 1 year ago
Any ideas what is going on here?
I can't tell what's going on from this exception. Can you tell me how to reproduce the exception? Is it only happening on JDK 17?
./gradlew :hibernate-core:compileTestJava17Java -Ptest.jdk.version=17 -Porg.gradle.java.installations.paths=<JDK_11_HOME>,<JDK_17_HOME>
The first time might take some time, but subsequent runs will be faster.
Ok, it seems this is a problem of the Gradle plugin. It didn't add the compileOnly dependency to the compile task.
I'm using the checker-framework 3.32 through the Gradle plugin version 0.6.25 and we are seeing a NPE when running on JDK 17:
The repository is https://github.com/hibernate/hibernate-orm and we run with the following config:
I expect it to work just like with JDK 11. Any idea what the reason for this could be? No checker should run for that compile task as the
onlyDefs
config applies for packages of a different gradle module.