Skip to content

GrEclipse 4.28+ corrupts Groovy method references by formatting :: as : :  #3013

Description

@AlexeyKuznetsov-DD

Minimal report:

s.write(tests, TestFQNSerializer::serialize)

Actual output:

s.write(tests, TestFQNSerializer: : serialize)

The output is invalid Groovy and fails compilation.
Environment
Spotless Gradle plugin: 8.9.0
GrEclipse: reproduced with 4.35 and 4.40
Last known good GrEclipse version: 4.27
Gradle: 9.7.0
Pinning GrEclipse to 4.27 avoids the corruption.

I found no existing issue matching this exact formatting failure.

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