|
Atm. it is not clearly defined what the expected behaviour is in case of hidden fields and getters. A member is hidden, if it is private and a sub-class defines another member with the same name:
public class Base {
@Size(min=3)
private String value;
}
public class Sub extends Base {
@Min(3)
private Long value;
}
For validate() it seems reasonable to validate the constraints on both "value" members. But what should happen for validateProperty() (validate both, only Sub#value? Should there be a way to only validate Base#value? Similarly for validateValue(), which has the additional challenge that the allowed types may differ.
|