Skip to content

Type aware canWrite() method should be called for GenericHttpMessageConverter [SPR-13161] #17752

Closed

Description

@spring-projects-issues

Sébastien Deleuze opened SPR-13161 and commented


Issue Links:

Referenced from: commits 289f35d

Activity

  1. spring-projects-issues commented on Jun 25, 2015

    @spring-projects-issues
    CollaboratorAuthor

    Sébastien Deleuze commented

    This commit introduces the following changes:

    • 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions