[hibernate-issues] [Hibernate-JIRA] Created: (HV-550) fail-fast doesn't work on composite constraints

Emerson Farrugia (JIRA) noreply at atlassian.com
Wed Jan 4 21:52:13 EST 2012


fail-fast doesn't work on composite constraints
-----------------------------------------------

                 Key: HV-550
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-550
             Project: Hibernate Validator
          Issue Type: Bug
    Affects Versions: 4.2.0.Final
            Reporter: Emerson Farrugia


I have a composite constraint @Foo that's validated by FooValidator. @Foo's marked with @Bar, which is validated by BarValidator.

When I validate a bean whose property is marked as @Foo, and BarValidator fails, FooValidator is still being run. This prevents me from assuming that BarValidator has passed, which defeats the purpose of marking @Foo with @Bar because FooValidator now has to repeat the work of BarValidator.

The culprit as best I can tell is line 133 of ConstraintTree, which doesn't check the fail-fast property before running the validator of the constraint itself.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list