-
Notifications
You must be signed in to change notification settings - Fork 41.2k
ConfigurationMetadataAnnotationProcessor can add duplicate entries #23916
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
@snicoll Can you remember why |
You may have more than one source for a key. A concrete example is additional metadata where you define the key again to provide a description (or a more fined tuned type). Having said that, I had a look to the build scan and if I understood the failure right, this does not seem to be related to the annotation processor but rather the documentation plugin, i.e.
Or am I looking at the wrong stacktrace? |
The documentation plugin ends up failing because there are two entries in the |
Here's some debug output showing that I added this to
|
I don't understand the debug output. It seems to be for the addition of
The I wonder if it's a bug related to incremental compilation? Perhaps that's causing the duplicate entries to appear rather than them getting merged into one. |
Might be related to |
See also #10886 |
Since the cause is likely #23580 we can probably get away with fixing this in 2.4.x only |
@wilkinsona @snicoll I've just pushed what I hope is a fix. Could you both take a quick look to make sure it's not silly. |
I've had builds fail recently due to duplicate meta-data entries. The most recent being https://ge.spring.io/s/p5yonxuszztr2/failure#1.
It looks like it might be possible to have duplicate entries in
org.springframework.boot.configurationprocessor.metadata.ConfigurationMetadata
, but I'm not sure how/why this happens. I wonder if theflattenValues
method needs reworking.The text was updated successfully, but these errors were encountered: