It is quite uncommon for annotations to use that behavior. Also note that the annotations eg decided not to even offer that option of method overriding.
Exactly. I find it therefore very weird that the BV spec treats the @Valid annotation as being inherited from overridden methods. This conflicts with the guidelines for annotation inheritance as defined in the Common Annotations spec. It says:
Member-level annotations on a hidden or overridden member are always ignored.
|