-
Notifications
You must be signed in to change notification settings - Fork 85
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
[Spring 6] Add a recipe to switch from HttpStatus to HttpStatusCode for WebMVC customizations #369
Comments
Hi @iuliiasobolevska ; welcome back and thank you for reporting this issue here! Indeed it's a change that we have not yet provided a recipe for; thanks for including the link the original commit for context. That commit links to this issue, which also gives some more background.
If I understand you correctly any time you extend In your example, where is the Understandable that you can't fully commit to a recipe implementation just yet; I'll add it to the backlog and anyone is then welcome to help out. |
yes, that's correct
oh my bad and a bad example, I forgot that it's an internal class:
Anyways, it was just for illustration purposes to highlight that usages of |
What problem are you trying to solve?
When updating from
org.springframework:spring-webmvc
from5.3.27
->6.0.9
, we had to update method overrides for classes extendingResponseEntityExceptionHandler
due to method signature changes from this commit.ResponseEntityExceptionHandler
is just one example of a class that was changed in that commit.What precondition(s) should be checked before applying this recipe?
For
org.springframework:spring-webmvc
v.6.0.0 and higher. Should be included in the Spring Boot 3 recipe.Describe the situation before applying the recipe
Describe the situation after applying the recipe
Are you interested in contributing this recipe to OpenRewrite?
Maybe, won't have bandwidth in the next couple of weeks so can't fully commit.
The text was updated successfully, but these errors were encountered: