bval-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Dart <jd...@vmware.com>
Subject possible bug with @Size on Collection parameter?
Date Fri, 10 Dec 2010 23:26:41 GMT
I'm getting an exception trying to use @Size on a parameter of type Collection (the javadoc
for javax.validation.constraints.Size says this is an allowed target for @Size):

Caused by: javax.validation.UnexpectedTypeException: No validator could be found for type
java.util.Collection. See: @Size at org.apache.bval.jsr303.extensions.ParameterAccess@1d78dd6<mailto:org.apache.bval.jsr303.extensions.ParameterAccess@1d78dd6>

 at org.apache.bval.jsr303.Jsr303MetaBeanFactory.checkOneType(Jsr303MetaBeanFactory.java:510)

 at org.apache.bval.jsr303.Jsr303MetaBeanFactory.applyConstraint(Jsr303MetaBeanFactory.java:451)

 at org.apache.bval.jsr303.extensions.MethodValidatorMetaBeanFactory.processAnnotation(MethodValidatorMetaBeanFactory.java:163)

 at org.apache.bval.jsr303.extensions.MethodValidatorMetaBeanFactory.processAnnotations(MethodValidatorMetaBeanFactory.java:141)

 at org.apache.bval.jsr303.extensions.MethodValidatorMetaBeanFactory.buildMethodConstraints(MethodValidatorMetaBeanFactory.java:125)

 at org.apache.bval.jsr303.extensions.MethodValidatorMetaBeanFactory.buildMethodDescriptor(MethodValidatorMetaBeanFactory.java:64)

This is with the 0.2-incubating release.

--Jon



Mime
View raw message