Skip to content

LombokValueToRecord results in broken if method references are used #449

@holgpar

Description

@holgpar

What version of OpenRewrite are you using?

  • OpenRewrite v1.2.3
  • Maven/Gradle plugin v1.2.3
  • rewrite-module v1.2.3

How are you running OpenRewrite?

From the sources of rewrite-migrate-java.

What is the smallest, simplest way to reproduce the problem?

The recipe correctly adapts method invocations to the changed getter naming convention: getTest() -> test(). But it does not do so for method references, i.e. a::getTest remains as it is.

Are you interested in contributing a fix to OpenRewrite?

Yes, I would like to, but could you elaborate on how openrewrite models method references? Is it some kind of member reference?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions