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

Wrong HandlerResultHandler select when dealing with exceptions [SPR-14876] #19442

Closed
spring-projects-issues opened this issue Nov 3, 2016 · 0 comments
Assignees
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Nov 3, 2016

Brian Clozel opened SPR-14876 and commented

In some cases, the wrong HandlerResultHandler can be resolved when handling exceptions; this can happen only if the original handler and exception handler have different signatures:

Publisher<String> originalHandler() { ... }

@ExceptionHandler(MyCustomException.class)
ResponseEntity<Mono<String>> handleException() { ... }

In that case, the ResponseBodyResultHandler will be used when handling exceptions instead of the ResponseEntityResultHandler.


Affects: 5.0 M2

Referenced from: commits 95abd18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants