Support reading unresolvable types in AbstractJacksonHttpMessageConverter

Closes gh-35889
This commit is contained in:
Sébastien Deleuze
2025-11-25 16:00:04 +01:00
parent e2287020c3
commit 85ca9f46dd
2 changed files with 28 additions and 5 deletions
@@ -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