-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Configuration property descriptions may be lost when building incrementally #28075
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
Comments
During the second compilation, where the property's description disappears, The doc comment can't be found as Looking at the output produced by Gradle when running with |
Digging some more, Gradle's calling
This is exactly what's happening in this case. The Based on the above, this is a bug in our annotation processor. |
As far as I can tell, there's no way to tell if a If we cast
|
Using I think we have two, perhaps three, options:
The second option would increase compile times. The third would require code changes to move away from javadoc to the new mechanism. I am going to explore the first option as, in theory, it offers a solution to the problem without affecting users. |
…t when building incrementally: spring-projects/spring-boot#28075
…t when building incrementally: spring-projects/spring-boot#28075
We have two
@ConfigurationProperties
annotated classes:compileJava
produces the following metadata:We then change the description of
more.some-property
toAnother example property with a new description.
.compileJava
now produces the following metadata:The description of the property that was not changed,
some.some-property
, has been lost. Upon runningclean compileJava
it reappears.The text was updated successfully, but these errors were encountered: