Author: epbernard
Date: 2009-04-29 17:18:35 -0400 (Wed, 29 Apr 2009)
New Revision: 16482
Modified:
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ExecutionContext.java
Log:
BVAL-150 Fix pathToTraversableObject
Modified:
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ExecutionContext.java
===================================================================
---
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ExecutionContext.java 2009-04-29
17:58:48 UTC (rev 16481)
+++
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ExecutionContext.java 2009-04-29
21:18:35 UTC (rev 16482)
@@ -293,7 +293,7 @@
peekCurrentBean(),
peekProperty(),
rootBeanClass,
- peekPropertyPath(),
+ peekParentPath(),
metaConstraint.getElementType()
);
}
@@ -328,6 +328,7 @@
}
private String buildPath(int index) {
+ if (index < 0) return PROPERTY_ROOT;
StringBuilder builder = new StringBuilder();
for ( int i = 0; i <= index; i++ ) {
builder.append( propertyPath.get( i ) );
Show replies by date