Author: hardy.ferentschik
Date: 2009-06-22 09:41:18 -0400 (Mon, 22 Jun 2009)
New Revision: 16852
Modified:
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ValidatorImpl.java
Log:
HV-173 Made sure that the value is case to Object[]
Modified:
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ValidatorImpl.java
===================================================================
---
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ValidatorImpl.java 2009-06-22
11:37:29 UTC (rev 16851)
+++
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ValidatorImpl.java 2009-06-22
13:41:18 UTC (rev 16852)
@@ -193,8 +193,6 @@
return Collections.emptyList();
}
- //FIXME if context not accessible do not call isTraversable??
-
// process all groups breadth-first
Iterator<Group> groupIterator = groupChain.getGroupIterator();
while ( groupIterator.hasNext() ) {
@@ -282,7 +280,6 @@
}
//this method must always be called after validateConstraints for the same context
- //TODO define a validate that calls validateConstraints and then
validateCascadedConstraints
private <T> void validateCascadedConstraints(ExecutionContext<T> context) {
List<Member> cascadedMembers = getBeanMetaData( context.peekCurrentBeanType() )
.getCascadedMembers();
@@ -323,7 +320,7 @@
context.markCurrentPropertyAsIterable();
}
else if ( TypeUtils.isArray( type ) ) {
- List<?> arrayList = Arrays.asList( value );
+ List<?> arrayList = Arrays.asList( ( Object[] ) value );
iter = arrayList.iterator();
context.markCurrentPropertyAsIterable();
}
Show replies by date