Open ivangsa opened 10 months ago
I am running into this as well, with JDK21 being the new LTS and excavator trying to push to it.
class com.palantir.javaformat.java.ImportOrderer (in unnamed module @0x5d2b1399) 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 @0x5d2b1399
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)