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

BindException not handled anymore but still registered in ExceptionHandler #33952

Open
DerKanzler opened this issue Nov 24, 2024 · 0 comments
Open
Labels
status: waiting-for-triage An issue we've not yet triaged or decided on

Comments

@DerKanzler
Copy link

DerKanzler commented Nov 24, 2024

With a85bf31 the method handleBindException was removed in ResponseEntityExceptionHandler.
But BindException.class wasn't removed from the @ExceptionHandler annotation although the method doesn't handle the exception anymore.
See https://github.com/spring-projects/spring-framework/blob/v6.2.0/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseEntityExceptionHandler.java#L139

This leads to an error if you want to handle BindException in your own exception handler.
Please remove the exception from the annotation or reintroduce the handling of it in Spring Framework 6.2.1.

Thank you!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged or decided on
Projects
None yet
Development

No branches or pull requests

2 participants