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

[BUG] @ExtensionMethod will not translate fluent calls to from one method to another method in the same "extension" class #2447

Open
jm98 opened this issue May 1, 2020 · 0 comments

Comments

@jm98
Copy link

jm98 commented May 1, 2020

Describe the bug
When I write a static extension method that calls another static extension method within the same class then I expect to be able to use the fluent style and not have to revert back to the static call syntax.

To Reproduce
Create a extension method class which are overloads of each other

public static Integer indexWhere(Iterator collection, Predicate predicate) {
return collection.indexWhere(0, predicate);
}

public static Integer indexWhere(Iterator collection, int startIndex, Predicate predicate) {
// do the real work
return -1; // as test
}

Expected behavior
Compilation should not report an error

Version info (please complete the following information):

  • Lombok version: 1.18.12
  • Platform Intellij IDEA 2020.1 Community Edition

Additional context
Add any other context about the problem here.

@jm98 jm98 changed the title [BUG] @ExtensionMethod will not translate fluent calls to [BUG] @ExtensionMethod will not translate fluent calls to from one method to another method in the same "extension" class May 1, 2020
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