Clarify semantics of meta-data API if field and property type differ

Description

This has been an issue before BV 2.0, but the exposure of container-element constraints makes it apparent one more time. What should we do in terms of the meta-data API if a field and the corresponding property getter have different types? What to return from getElementClass()? and what to return from the new getConstrainedContainerElementTypes()? The only thing I can see us doing is to mandate one preference rule, e.g. to return the meta-data from the property getter in that case.

Environment

None

Status

Assignee

Unassigned

Reporter

Gunnar Morling

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Fix versions

Priority

Major