Skip to content

IllegalAccessError in 0.10.0, 0.11.0 #260

@monzonj

Description

@monzonj

If you use the version 0.10.0 or greater with Java21, sbt 1.10 or greater this error is thrown:

[error] (Compile / javafmt) java.lang.IllegalAccessError: class com.google.googlejavaformat.java.ImportOrderer (in unnamed module @0x261f3c95) 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 @0x261f3c95

version 0.9.0 is ok

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions