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] static import of @UtilityClass method causes annotation processing to fail #2625

Closed
muhmud opened this issue Oct 23, 2020 · 3 comments
Closed

Comments

@muhmud
Copy link

muhmud commented Oct 23, 2020

Describe the bug
If you perform a static import of one of the methods from a class annotated with @UtilityClass from within the same project, i.e. not via a dependency, annotation processing completely fails, and you get compilation errors for other unrelated classes that use lombok annotations.

To Reproduce
As described above, simply create a class annotated with @UtilityClass and do a static import of one of its methods from another class. Also add some other code with lombok annotations. You should get spurious compilation errors. This only occurs when running maven build commands and not from the IDE.

Expected behavior
The static import should be handled without issue.

Version info (please complete the following information):

  • Lombok 1.18.16
  • javac, both 1.8.0_152 and 11.0.8

Additional context
The effect is as though lombok annotations are not being processed at all, and for a long time I thought this was the case, only to narrow it down to this.

@muhmud muhmud changed the title [BUG] import static on @UtilityClass method causing annotation processing to fail [BUG] static import of @UtilityClass method causes annotation processing to fail Oct 23, 2020
@randakar
Copy link

randakar commented Oct 23, 2020 via email

@randakar
Copy link

randakar commented Oct 23, 2020 via email

@muhmud
Copy link
Author

muhmud commented Oct 23, 2020

True; I usually read the small print, but must have missed it.

@muhmud muhmud closed this as completed Oct 23, 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

2 participants