Skip to content

Change canRead/canWrite overrides to Class ones in AbstractSmartHttpMessageConverter #35916

@sdeleuze

Description

@sdeleuze

As reported by @odrotbohm, extending AbstractSmartHttpMessageConverter typically requires to override both Class and ResolvableType variants of canRead. This was not intended as SmartHttpMessageConverter interface has default methods doing the conversion from Class parameters to ResolvableType ones, but AbstractHttpMessageConverter overrides it.

We should change canRead/canWrite overrides to Class ones in AbstractSmartHttpMessageConverter that delegate to the ResolvableType variants.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions