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
java.lang.IllegalAccessError: class com.palantir.javaformat.java.ImportOrderer (in unnamed module @0x544fe44c) cannot access class com.sun.tools.javac.parser.Tokens$TokenKind (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.parser to unnamed module @0x544fe44c
at com.palantir.javaformat.java.ImportOrderer.<clinit>(ImportOrderer.java:111)
at com.palantir.javaformat.java.Formatter.formatSourceAndFixImports(Formatter.java:260)
What did you want to happen?
Wouldn't replacing com.sun imports with org.openjdk fix this errors?
What happened?
When trying to run programatically palantir java formatter:
Throw the following exception
What did you want to happen?
Wouldn't replacing
com.sun
imports withorg.openjdk
fix this errors?https://github.com/palantir/palantir-java-format/blob/develop/palantir-java-format/src/main/java/com/palantir/javaformat/java/ImportOrderer.java#L29
(I much rather not have to add those jvm args as this is for a cli tool and it will be a bit inconvenient)
The text was updated successfully, but these errors were encountered: