Author: hardy.ferentschik
Date: 2009-06-19 07:45:05 -0400 (Fri, 19 Jun 2009)
New Revision: 16842
Modified:
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ValidatorImpl.java
Log:
Fixed bug in collectMetaConstraintsForPath() used by validateProperty and validateValue
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-19
11:44:15 UTC (rev 16841)
+++
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ValidatorImpl.java 2009-06-19
11:45:05 UTC (rev 16842)
@@ -44,14 +44,14 @@
import org.hibernate.validation.engine.groups.GroupChain;
import org.hibernate.validation.engine.groups.GroupChainGenerator;
import org.hibernate.validation.engine.resolver.SingleThreadCachedTraversableResolver;
-import org.hibernate.validation.util.LoggerFactory;
-import org.hibernate.validation.util.PropertyPath;
-import org.hibernate.validation.util.ReflectionHelper;
import org.hibernate.validation.metadata.BeanMetaData;
-import org.hibernate.validation.metadata.BeanMetaDataImpl;
import org.hibernate.validation.metadata.BeanMetaDataCache;
-import org.hibernate.validation.metadata.MetaConstraint;
+import org.hibernate.validation.metadata.BeanMetaDataImpl;
import org.hibernate.validation.metadata.ConstraintHelper;
+import org.hibernate.validation.metadata.MetaConstraint;
+import org.hibernate.validation.util.LoggerFactory;
+import org.hibernate.validation.util.PropertyPath;
+import org.hibernate.validation.util.ReflectionHelper;
/**
* The main Bean Validation class. This is the core processing class of Hibernate
Validator.
@@ -626,9 +626,7 @@
continue;
}
}
- collectMetaConstraintsForPath(
- ( Class<T> ) type, value, propertyIter, metaConstraints
- );
+ return collectMetaConstraintsForPath( ( Class<T> ) type, value, propertyIter,
metaConstraints );
}
}
}
Show replies by date