You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Type aware canWrite() method should be called for GenericHttpMessageConverter [SPR-13161] #17752
In AbstractMessageConverterMethodProcessor, the type aware variant of canWrite() is now called when the converter implements GenericHttpMessageConverter.
The Javadoc has been updated in GenericHttpMessageConverter to make it clear that the type aware canRead() and canWrite() methods should perform the same checks than non type aware ones.
AbstractGenericHttpMessageConverter now implements default type aware canRead() and canWrite() methods than just call the non type aware variants. Due to this, if subclasses just override the non type aware variants, they still have the right behavior.
Activity
spring-projects-issues commentedon Jun 25, 2015
Sébastien Deleuze commented
This commit introduces the following changes:
AbstractMessageConverterMethodProcessor, the type aware variant ofcanWrite()is now called when the converter implementsGenericHttpMessageConverter.GenericHttpMessageConverterto make it clear that the type awarecanRead()andcanWrite()methods should perform the same checks than non type aware ones.AbstractGenericHttpMessageConverternow implements default type awarecanRead()andcanWrite()methods than just call the non type aware variants. Due to this, if subclasses just override the non type aware variants, they still have the right behavior.