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.parameteracc...@1d78dd6<mailto:org.apache.bval.jsr303.extensions.parameteracc...@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
