incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jrba...@apache.org
Subject svn commit: r945869 - /incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintValidation.java
Date Tue, 18 May 2010 20:31:41 GMT
Author: jrbauer
Date: Tue May 18 20:31:40 2010
New Revision: 945869

URL: http://svn.apache.org/viewvc?rev=945869&view=rev
Log:
BVAL-48 ConstraintValidation was incorrectly using groups during payload processing.  This
caused intermittent failures, depending on the order the attributes were processed.

Modified:
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintValidation.java

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintValidation.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintValidation.java?rev=945869&r1=945868&r2=945869&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintValidation.java
(original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/ConstraintValidation.java
Tue May 18 20:31:40 2010
@@ -90,7 +90,7 @@ public class ConstraintValidation<T exte
 
     void setPayload(Set<Class<? extends Payload>> payload) {
         this.payload = payload;
-        this.attributes.put("payload", groups.toArray(new Class[groups.size()]));
+        this.attributes.put("payload", payload.toArray(new Class[payload.size()]));
     }
 
     public boolean isReportAsSingleViolation() {



Mime
View raw message