Hibernate Validator 5 compatible support for element constraints

Issue: SPR-15916
Issue: SPR-15839
This commit is contained in:
Juergen Hoeller
2017-09-01 16:40:24 +02:00
parent b6cae219d8
commit 26284cac4f
2 changed files with 50 additions and 1 deletions

View File

@@ -194,7 +194,7 @@ public class SpringValidatorAdapter implements SmartValidator, javax.validation.
sb.append(']');
}
String name = node.getName();
if (name != null && node.getKind() == ElementKind.PROPERTY) {
if (name != null && node.getKind() == ElementKind.PROPERTY && !name.startsWith("<")) {
if (!first) {
sb.append('.');
}