-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
Oliver Drotbohm opened SPR-6771 and commented
There's a small glitch similar to #11408 inside HttpMessageConverter
. If you use it programatically you usually ask canRead(Class<? extends T> clazz, MediaType mediatype)
before invoking read(Class<T> clazz, HttpInputMessage message)
. If you now have an implementation fixing generics to Object
to be as general as possible you can call canRead
with a Foo.class
but then in turn not read
with Foo.class
as it is not compatible to Class<Object>
.
Issue Links:
- HttpMessageConverter read and write methods have restrictive type annotations [SPR-6848] #11514 HttpMessageConverter read and write methods have restrictive type annotations
Referenced from: commits f2fdf9f
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement