"ConstraintDeclarationException: HV000151: A method overriding another method must not redefine the parameter constraint configuration ..." in JBoss EAP
Issue
Encountering exceptions similar to the below when generics (e.g. List
or Set
) are used in method parameters
javax.validation.ConstraintDeclarationException: HV000151: A method overriding another method must not redefine the parameter constraint configuration, but method SomeClass$$$view1#getSomeProperty(List) redefines the configuration of SomeClass#getSomeProperty(List).
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 7.2
- Hibernate Validator 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.