"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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content