You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: java.lang.IllegalAccessError: class com.google.googlejavaformat.java.RemoveUnusedImports (in unnamed module @0x2b099be2) cannot access class com.sun.tools.javac.util.Context (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.util to unnamed module @0x2b099be2 at com.google.googlejavaformat.java.RemoveUnusedImports.removeUnusedImports(RemoveUnusedImports.java:218) ... 142 more
This issue occurs when building at command line and in Intellij.
I tried adding the below workaround to my gradle.properties file
The text was updated successfully, but these errors were encountered:
rikintanna
changed the title
seeing a similar problem with a different module in googlejavaformat library
IllegalAccessError from com.sun.tools.javac.util
Mar 6, 2024
Similar to #787 (comment)_
Caused by: java.lang.IllegalAccessError: class com.google.googlejavaformat.java.RemoveUnusedImports (in unnamed module @0x2b099be2) cannot access class com.sun.tools.javac.util.Context (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.util to unnamed module @0x2b099be2 at com.google.googlejavaformat.java.RemoveUnusedImports.removeUnusedImports(RemoveUnusedImports.java:218) ... 142 more
This issue occurs when building at command line and in Intellij.
I tried adding the below workaround to my
gradle.properties
filejava version
Originally posted by @rikintanna in #787 (comment)
The text was updated successfully, but these errors were encountered: