mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 14:40:00 +00:00
Prevent StackOverflowError in AbstractJackson2HttpMessageConverter
Issue: SPR-14520
This commit is contained in:
+7
-3
@@ -356,9 +356,13 @@ public abstract class AbstractJackson2HttpMessageConverter extends AbstractGener
|
||||
return resolvedType;
|
||||
}
|
||||
}
|
||||
resolvedType = resolveVariable(typeVariable, contextType.getSuperType());
|
||||
if (resolvedType.resolve() != null) {
|
||||
return resolvedType;
|
||||
|
||||
ResolvableType superType = contextType.getSuperType();
|
||||
if (superType != ResolvableType.NONE) {
|
||||
resolvedType = resolveVariable(typeVariable, superType);
|
||||
if (resolvedType.resolve() != null) {
|
||||
return resolvedType;
|
||||
}
|
||||
}
|
||||
for (ResolvableType ifc : contextType.getInterfaces()) {
|
||||
resolvedType = resolveVariable(typeVariable, ifc);
|
||||
|
||||
Reference in New Issue
Block a user