mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 22:59:03 +00:00
TypeDescriptor's nested type traversal leniently returns null in case of unresolvable nested type
Issue: SPR-11898
This commit is contained in:
@@ -701,8 +701,7 @@ public class TypeDescriptor implements Serializable {
|
||||
}
|
||||
}
|
||||
if (nested == ResolvableType.NONE) {
|
||||
throw new IllegalStateException(
|
||||
"Unable to obtain nested generic from " + typeDescriptor + " at level " + nestingLevel);
|
||||
return null;
|
||||
}
|
||||
return getRelatedIfResolvable(typeDescriptor, nested);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user