Fixed
Details
Assignee
Marko BekhtaMarko BekhtaReporter
AlinaMAlinaMLabels
Participants
AlinaMGunnar MorlingMarko BekhtaPull Request
Components
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Marko Bekhta
Marko BekhtaReporter
AlinaM
AlinaMLabels
Participants
AlinaM
Gunnar Morling
Marko Bekhta
Pull Request
Components
Fix versions
Affects versions
Priority
Created December 11, 2013 at 11:05 PM
Updated December 8, 2016 at 11:32 AM
Resolved November 30, 2016 at 1:02 PM
In general, subclasses should not define constraints on method parameters that are stricter than those defined in superclasses. There was a detailed discussion on that in HV-421.
For instance, In Spring, with validation enabled, if I have two classes like this:
... I get a
ConstraintDefinitionException
on the first invocation of B.foo and rightly so.I think the annotation processor should be able to detect this (and other cases cases mentioned in HV-421) at compile time. It doesn't seem to do that.