TypeDescriptor's nested type traversal leniently returns null in case of unresolvable nested type

Issue: SPR-11898
(cherry picked from commit d663580)
This commit is contained in:
Juergen Hoeller
2014-07-01 12:00:20 +02:00
parent 5af1a691bc
commit 6403479902
3 changed files with 36 additions and 9 deletions

View File

@@ -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);
}