Uploaded image for project: 'Hibernate Validator'
  1. HV-930

ConstraintLocation does not specify equals() and hashCode()

    Details

    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true

      Description

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

      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.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: