Clarify behavior in case of hiding fields/properties

Description

A note in 5.1.1 mentions that the case of field/property hiding in hierarchies is unspecified and will be clarified in a later revision.

I guess it's too late to address this for 1.1, but if we ever will, the following rules might make sense:

  • In case a complete bean is validated, constraints on hidden and hiding members are evaluated (the members can be independently discovered and metadata such as constraints gathered for these)

  • In case a single property is validated (validateProperty, validateValue), only the hiding member gets validated (validateValue could be invoked for the supertype member separately, for validateProperty I don't see a way how the hidden member could be targeted)

  • The metadata API exposes the hiding member only (metadata for the hidden member could be retrieved from the supertype)

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

Components

Fix versions

Affects versions

1.1.0.Beta3

Priority

Major