Skip to content

Deprecate setDisallowedFields in DataBinder for removal - #36816

Closed
jhan0121 wants to merge 1 commit into
spring-projects:mainfrom
jhan0121:deprecate-databinder-disallowedfields
Closed

jhan0121 wants to merge 1 commit into
spring-projects:mainfrom
jhan0121:deprecate-databinder-disallowedfields

Conversation

@jhan0121

Copy link
Copy Markdown
Contributor

This PR deprecates setDisallowedFields() and getDisallowedFields() in DataBinder as discussed in #36802.

Changes

  • Deprecate setDisallowedFields() and getDisallowedFields() in DataBinder with @Deprecated(since = "7.1", forRemoval = true)
  • Remove the reference to disallowedFields as an alternative in setAllowedFields() Javadoc
  • Update reference documentation to reflect the deprecated status
  • Add @SuppressWarnings("removal") to affected test methods

Closes gh-36802

Deprecate `setDisallowedFields()` and `getDisallowedFields()` in
favor of the safer `setAllowedFields()` as an explicit opt-in.

Closes spring-projectsgh-36802
Signed-off-by: Juhwan Lee <jhan0121@gmail.com>
@bclozel

bclozel commented May 20, 2026

Copy link
Copy Markdown
Member

Thanks for the help, but the issue is already assigned.

@bclozel bclozel closed this May 20, 2026
@bclozel bclozel added the status: declined A suggestion or change that we don't feel we should currently apply label May 20, 2026
@jhan0121
jhan0121 deleted the deprecate-databinder-disallowedfields branch May 20, 2026 09:53
@jhan0121

Copy link
Copy Markdown
Contributor Author

Thanks for the quick response! I missed that the issue was already assigned. I will make sure to check the assignment status more carefully next time.

@rstoyanchev rstoyanchev self-assigned this Jul 29, 2026
@rstoyanchev rstoyanchev added in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement and removed status: declined A suggestion or change that we don't feel we should currently apply labels Jul 29, 2026
@rstoyanchev rstoyanchev added this to the 7.1.0-M1 milestone Jul 29, 2026
rstoyanchev pushed a commit that referenced this pull request Jul 29, 2026
Closes gh-36816
Signed-off-by: Juhwan Lee <jhan0121@gmail.com>
rstoyanchev added a commit that referenced this pull request Jul 29, 2026
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.

Deprecate disallowedFields property of DataBinder

3 participants