Merge branch '6.2.x'
This commit is contained in:
@@ -1032,7 +1032,9 @@ public class DataBinder implements PropertyEditorRegistry, TypeConverter {
|
||||
}
|
||||
int size = (indexes.last() < this.autoGrowCollectionLimit ? indexes.last() + 1 : 0);
|
||||
List<V> list = (List<V>) CollectionFactory.createCollection(paramType, size);
|
||||
indexes.forEach(i -> list.add(null));
|
||||
for (int i = 0; i < size; i++) {
|
||||
list.add(null);
|
||||
}
|
||||
for (int index : indexes) {
|
||||
list.set(index, (V) createObject(elementType, paramPath + "[" + index + "].", valueResolver));
|
||||
}
|
||||
|
||||
@@ -367,7 +367,7 @@ public class MethodValidationAdapter implements MethodValidator {
|
||||
container = null;
|
||||
}
|
||||
|
||||
if (node.getKind().equals(ElementKind.PROPERTY)) {
|
||||
if (node.getKind().equals(ElementKind.PROPERTY) || node.getKind().equals(ElementKind.BEAN)) {
|
||||
nestedViolations
|
||||
.computeIfAbsent(parameterNode, k ->
|
||||
new ParamErrorsBuilder(parameter, value, container, index, key))
|
||||
|
||||
Reference in New Issue
Block a user