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

Handle field initializer in diet mode #3578

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

Rawi01
Copy link
Collaborator

@Rawi01 Rawi01 commented Jan 5, 2024

This PR fixes #1443

The eclipse parser disables diet parse for field initializers, and if one of these initializers contains an anonymous type, it may also contain a method with a lombok annotation. In some cases, eclipse will resolve the bindings after the diet parse and lombok will generate unresolved code. To prevent this I added some code to identify and handle this case.

I was unable to reproduce this problem in an automated full eclipse test but I added a new source directive to compare the diet result.

@rzwitserloot rzwitserloot merged commit b1f9370 into projectlombok:master Jan 12, 2024
45 checks passed
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

Successfully merging this pull request may close these issues.

NullPointerException in Eclipse Oxygen
2 participants