Relaxed getElementTypeDescriptor assertion to not insist on a ResolvableType-known array

Issue: SPR-11608
This commit is contained in:
Juergen Hoeller
2014-03-26 16:09:15 +01:00
parent 3388573646
commit b9bac1d3b6
2 changed files with 17 additions and 4 deletions

View File

@@ -325,9 +325,7 @@ public class TypeDescriptor implements Serializable {
if (this.resolvableType.isArray()) {
return new TypeDescriptor(this.resolvableType.getComponentType(), null, this.annotations);
}
Assert.state(isCollection(), "Not an array or java.util.Collection");
return getRelatedIfResolvable(this, this.resolvableType.asCollection().getGeneric());
}
/**