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

Issue: SPR-11898
This commit is contained in:
Juergen Hoeller
2014-06-24 20:57:09 +02:00
parent a6f3f101e4
commit d6635802c4
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);
}