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

Add ParameterNamesModule to "well known" jackson modules #27511

Conversation

Sam-Kruglov
Copy link
Contributor

Also, I'm surprised to see that org.springframework.http.converter.json.Jackson2ObjectMapperBuilder#findModulesViaServiceLoader is not true by default. Why not always just let it scan the classpath, seems like findWellKnownModules does the same but manually.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Oct 2, 2021
@rstoyanchev rstoyanchev added the in: web Issues in web modules (web, webmvc, webflux, websocket) label Nov 10, 2021
@snicoll snicoll requested a review from sdeleuze August 26, 2023 16:05
@sdeleuze sdeleuze added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Aug 28, 2023
@sdeleuze sdeleuze self-assigned this Aug 28, 2023
@sdeleuze sdeleuze added this to the 6.1.0-RC1 milestone Aug 28, 2023
Copy link
Contributor

@sdeleuze sdeleuze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ParameterNamesModule looks useful for common use case, so I will merge those changes.

I will raise your point about enabling service loader instead with the team. Well-know modules can be enabled via this mechanism so if it does not introduce side effects, that could indeed be an alternative.

sdeleuze pushed a commit to sdeleuze/spring-framework that referenced this pull request Aug 28, 2023
sdeleuze added a commit to sdeleuze/spring-framework that referenced this pull request Aug 28, 2023
sdeleuze added a commit to sdeleuze/spring-framework that referenced this pull request Aug 28, 2023
@sdeleuze sdeleuze closed this in 349674e Aug 28, 2023
@sdeleuze
Copy link
Contributor

Notice such change was also discussed in #17886, and at that time we decided to not include it, but nowadays I expect developers to use much more constructor binding, so using this default makes sense. Inclusion in the Release Candidate will give us the opportunity to revise that choice if we have feedback mentioning unwanted side effects.

@sdeleuze sdeleuze changed the title add ParameterNamesModule to "well known" jackson modules Add ParameterNamesModule to "well known" jackson modules Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants