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

Hardy Ferentschik (JIRA) noreply at atlassian.com
Mon Jan 30 11:28:09 EST 2012


     [ http://opensource.atlassian.com/projects/hibernate/browse/HV-550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hardy Ferentschik updated HV-550:
---------------------------------

      Component/s: engine
    Fix Version/s: 4.3.0.Alpha1

> 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
>          Components: engine
>    Affects Versions: 4.2.0.Final
>            Reporter: Emerson Farrugia
>             Fix For: 4.3.0.Alpha1
>
>
> 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