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

Closed
DerKanzler opened this issue Nov 24, 2024 · 1 comment
Closed
Labels
status: superseded An issue that has been superseded by another

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
remeio added a commit to remeio/spring-framework that referenced this issue Jan 8, 2025
The method doesn't handle the BindException anymore.

Close spring-projectsgh-33952.
@bclozel
Copy link
Member

bclozel commented Jan 8, 2025

Superseded by #34214

@bclozel bclozel closed this as not planned Won't fix, can't repro, duplicate, stale Jan 8, 2025
@bclozel bclozel added status: superseded An issue that has been superseded by another and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Jan 8, 2025
remeio added a commit to remeio/spring-framework that referenced this issue Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: superseded An issue that has been superseded by another
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants