Skip to content

Spotless Maven Plugin fails on Java 25 EA #2468

@scordio

Description

@scordio

When executing spotless-maven-plugin:2.44.4:check on Java 25 Build 19, I get the following error:

Execution default of goal com.diffplug.spotless:spotless-maven-plugin:2.44.4:check failed: An API incompatibility was encountered while executing com.diffplug.spotless:spotless-maven-plugin:2.44.4:check: java.lang.NoSuchMethodError: 'java.util.Queue com.sun.tools.javac.util.Log$DeferredDiagnosticHandler.getDiagnostics()'

It seems that DeferredDiagnosticHandler::getDiagnostics is no longer binary compatible as it returns a List<JCDiagnostic> in Java 25 instead of a Queue<JCDiagnostic>.

Full logs at: https://github.com/scordio/jimfs-junit-jupiter/actions/runs/14557109026/job/40835481353

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions