Skip to content

BindException not handled anymore but still registered in ExceptionHandlerΒ #33952

@DerKanzler

Description

@DerKanzler

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions