"ConstraintDeclarationException: HV000151: A method overriding another method must not redefine the parameter constraint configuration ..." in JBoss EAP

Solution Verified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In