Derive constraint target automatically for XML-configured constraints

Description

If a constraint which has a generic and a cross-parameter validator is applied to a method with return value and parameters, its target must be specified using the element validationAppliesTo.

For XML-configured constraints the target could be derived automatically, since the constraint is unambigiously specified either within the return-value or cross-parameter elements. Currently one has to specify a constraint like so in this case:

Note that the spec doesn't mandate the suggested behavior, but I think it would make sense to support it for the ease of use.

Environment

None

Assignee

Gunnar Morling

Reporter

Gunnar Morling

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Major
Configure