-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
challengeTCK challengeTCK challenge
Description
Looking at this test
org.hibernate.beanvalidation.tck.tests.constraints.validatorresolution.ValidatorResolutionTest#testResolutionOfMinMaxForDifferentTypes
I don't understand why would @Min work on a String type; it's JavaDoc doesn't say anything about validating a String.
public class MinMax {
@Min(10l)
@Max(20l)
Number number;
@Min(10l)
@Max(20l)
String numberAsString;
public MinMax(String stringNumber, Number number) {
this.numberAsString = stringNumber;
this.number = number;
}
}marko-bekhta
Metadata
Metadata
Assignees
Labels
challengeTCK challengeTCK challenge