Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalAccessError: superclass access check failed with setup-java@v4 #626

Open
2 of 5 tasks
alghe-global opened this issue Apr 25, 2024 · 2 comments
Open
2 of 5 tasks
Labels
bug Something isn't working

Comments

@alghe-global
Copy link

Description:
A clear and concise description of what the bug is.

Task version:
Specify the task version

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • 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

seems it relates to https://youtrack.jetbrains.com/issue/KT-60507/Kapt-IllegalAccessError-superclass-access-check-failed-using-java-21-toolchain

@alghe-global alghe-global added bug Something isn't working needs triage labels Apr 25, 2024
@HarithaVattikuti
Copy link
Contributor

Hello @alghe-global
Thank you for creating this issue. We will investigate it and get back to you as soon as we have some feedback.

@alghe-global
Copy link
Author

Am I the only one who tried adopting v4 and encountered this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants