HttpMessageConverter should accept Class<? extends T> on can read [SPR-6771] #11437
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Oliver Drotbohm opened SPR-6771 and commented
There's a small glitch similar to #11408 inside
HttpMessageConverter
. If you use it programatically you usually askcanRead(Class<? extends T> clazz, MediaType mediatype)
before invokingread(Class<T> clazz, HttpInputMessage message)
. If you now have an implementation fixing generics toObject
to be as general as possible you can callcanRead
with aFoo.class
but then in turn notread
withFoo.class
as it is not compatible toClass<Object>
.Issue Links:
Referenced from: commits f2fdf9f
The text was updated successfully, but these errors were encountered: