Validate field / property constraint before class level constraint

Description

Validate field / property constraints before class level constraint is validated.

Currently class level constraints are validated before single field constraints by default.
This requires us to repeat some validation in the class level constraint like checking for null values.

Improvement

A bean is never valid if any single field is invalid. In other words, it is a precondition that all fields must be valid so that a class level constraint can be valid.

Following example would throw a NPE in the `isValid` method, since `@NotNull` on property `value` was not evaluated before `@FooValidator`

Related SO questions

Environment

None

Attachments

Assignee

Unassigned

Reporter

Marco Janc

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Priority

Major
Configure