-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Fix ClassCastException from return value validation with proxy when adaptConstraintViolations=true #33105
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
Conversation
Fix argument in call to applyReturnValueValidation() method in MethodValidationInterceptor.java. Method argument was passed instead of the return value of the method that was being validated. Closes spring-projectsgh-33092
@imvtsl Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@imvtsl Thank you for signing the Contributor License Agreement! |
@rstoyanchev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to have a test. Would you like to add one, possibly in MethodValidationProxyReactorTests
or MethodValidationProxyTests
?
Fix argument in call to applyReturnValueValidation() method in MethodValidationInterceptor.java. Method argument was passed instead of the return value of the method that was being validated. Closes spring-projects spring-projectsgh-33105
Sure. I am working on adding test now. |
Fix argument in call to applyReturnValueValidation() method in MethodValidationInterceptor.java. Method argument was passed instead of the return value of the method that was being validated. Closes spring-projectsgh-33092
@rstoyanchev I read CONTRIBUTING.md and I have a query. Should I sqaush these 2 commits into one or is it okay? |
Fix argument in call to applyReturnValueValidation() method in MethodValidationInterceptor.java. Method argument was passed instead of the return value of the method that was being validated. See gh-33105
I've squashed them for you and updated the tests a bit. |
Fix argument in call to applyReturnValueValidation() method in MethodValidationInterceptor.java. Method argument was passed instead of the return value of the method that was being validated.
Closes gh-33092