Description:
A clear and concise description of what the bug is.
Task version:
Specify the task version
Platform:
[x] Ubuntu
[ ] macOS
[ ] Windows
Runner type:
[x] Hosted (GitHub Actions)
[ ] Self-hosted
Repro steps:
Run gradle build with setup-java@v4
Expected behavior:
Gradle build to succeed (succeeds with setup-java@v3)
Actual behavior:
Error is thrown:
e: java.lang.IllegalAccessError: superclass access check failed: class org.jetbrains.kotlin.kapt3.base.javac.KaptJavaCompiler (in unnamed module @0x7c548429) cannot access class com.sun.tools.javac.main.JavaCompiler (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.main to unnamed module @0x7c548429
Description: A clear and concise description of what the bug is.
Task version: Specify the task version
Platform:
Runner type:
Repro steps:
Run gradle build with
setup-java@v4
Expected behavior: Gradle build to succeed (succeeds with
setup-java@v3
)Actual behavior: Error is thrown:
seems it relates to https://youtrack.jetbrains.com/issue/KT-60507/Kapt-IllegalAccessError-superclass-access-check-failed-using-java-21-toolchain