Skip to content

Failure to discover default value for a primitive should not lead to document its default value #46551

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

Closed

Conversation

Kguswo
Copy link
Contributor

@Kguswo Kguswo commented Jul 25, 2025

Change Summary

Improve configuration metadata annotation processor to omit unknown default values in arithmetic expressions.

As arithmetic expressions are not considered literals by the processor, their default values should not be recorded in the generated metadata. This change updates the processor to properly omit such values and adds tests to verify the behavior.

Open to suggestions or corrections!

Related Issue

#46509

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 25, 2025
@snicoll snicoll self-assigned this Jul 28, 2025
@snicoll snicoll added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 28, 2025
@snicoll snicoll added this to the 3.4.9 milestone Jul 28, 2025
@snicoll snicoll changed the title Fix handling of default values for arithmetic expressions in configuration metadata Failure to discover default value for a primitive should not lead to document its default value Jul 28, 2025
snicoll pushed a commit that referenced this pull request Jul 28, 2025
@snicoll snicoll closed this in 1486b13 Jul 28, 2025
@snicoll
Copy link
Member

snicoll commented Jul 28, 2025

Thanks again @Kguswo, see the polish commit for the things I've amended.

@Kguswo
Copy link
Contributor Author

Kguswo commented Jul 28, 2025

Thanks! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants