-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
Duplicate metadata entry for property that is @Deprecated when Lombok runs before spring-boot-configuration-processor #17550
Comments
@brucelwl thanks for the report but I find code in text generally not helpful as often something that's not shown is necessary to reproduce the problem. I've copy/pasted your example in a small project and I can't reproduce the problem. Can you please provide a small sample (github repo or project zip) and instructions to reproduce the problem? |
@snicoll please see my demo https://github.com/brucelwl/demo |
Thanks. I can reproduce and this depends the order in which the APs are invoked on the project. I've swapped the order of When lombok runs first, I suspect it creates an additional candidate that the AP detects and shouldn't. |
This comment has been minimized.
This comment has been minimized.
This only appears to happen when the configuration property is
|
The metadata is also added twice when the property is not |
When Lombok is used, fields marked @deprecated will be generated twice in the spring-configuration-metadata.json file
As shown in the picture, two descriptions are generated.
The text was updated successfully, but these errors were encountered: