mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-01 03:39:05 +00:00
Support reading unresolvable types in AbstractJacksonHttpMessageConverter
Closes gh-35889
This commit is contained in:
+1
-5
@@ -264,11 +264,7 @@ public abstract class AbstractJacksonHttpMessageConverter<T extends ObjectMapper
|
||||
if (!canRead(mediaType)) {
|
||||
return false;
|
||||
}
|
||||
Class<?> clazz = type.resolve();
|
||||
if (clazz == null) {
|
||||
return false;
|
||||
}
|
||||
return this.mapperRegistrations == null || selectMapper(clazz, mediaType) != null;
|
||||
return this.mapperRegistrations == null || selectMapper(type.toClass(), mediaType) != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user