-
Notifications
You must be signed in to change notification settings - Fork 18
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
Correct retrieving deserializer / serializer from the bean context #859
Conversation
if (injectionPoint instanceof ArgumentInjectionPoint<?, ?> argumentInjectionPoint) { | ||
Argument typeParameter = argumentInjectionPoint.getArgument().getTypeParameters()[0]; | ||
DefaultSerdeRegistry defaultSerdeRegistry = serdeRegistry.get(); | ||
return (S) defaultSerdeRegistry.findSerializer(typeParameter); |
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.
does it need a call to createSpecific
?
if (injectionPoint instanceof ArgumentInjectionPoint<?, ?> argumentInjectionPoint) { | ||
Argument typeParameter = argumentInjectionPoint.getArgument().getTypeParameters()[0]; | ||
DefaultSerdeRegistry defaultSerdeRegistry = serdeRegistry.get(); | ||
return (S) defaultSerdeRegistry.findDeserializer(typeParameter); |
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.
does it need a call to createSpecific?
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.
Yes
def deserializer = beanContext.getBean(Argument.of(Serializer, Argument.mapOf(String, Object))) | ||
|
||
then: | ||
deserializer |
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.
add tests that actually use the serialiser/deserializer to serialize
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.
Added
Quality Gate passedIssues Measures |
No description provided.