We're updating the issue view to help you get more done. 

ConstraintLocation does not specify equals() and hashCode()

Description

ConstraintLocation was merged in one class in HV-645, but the hashCode() and equals() were not implemented.
Due to this, in ValidatorImpl #929

1 if ( constraintList.contains( metaConstraint ) ) { ... }

fails to recognize that two paths that are identical, are equal.

My particular case is using the JSF Mojarra application with latest hibernate-validator, and having a getter in backing bean annotated with some JSR 303 validation annotation.

equals() and hashCode() should be added as they were present in BeanConstraintLocation.

Working fine in 5.0.3.Final, for example.

Environment

None

Status

Assignee

Hardy Ferentschik

Reporter

Oskars Vilitis

Labels

Components

Fix versions

Affects versions

5.1.2.Final

Priority

Major