Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy underriding doesn't work #1489

Open
aviv-nd opened this issue Oct 30, 2023 · 0 comments
Open

Lazy underriding doesn't work #1489

aviv-nd opened this issue Oct 30, 2023 · 0 comments

Comments

@aviv-nd
Copy link

aviv-nd commented Oct 30, 2023

When configuring underrideToString = "underrideToString" and defining the following:

public interface Example {
    @Lazy
    default String underrideToString() {
        ...
    }
}

This is generated in the immutable class:

  @Override
  public String toString() {
    return Url.super.underrideToString();
  }

And the method executes every time instead of lazily.

The lazy implementation for underrideToString is also generated, so it would be great if it were used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant