[hibernate-issues] [Hibernate-JIRA] Updated: (HV-550) fail-fast doesn't work on composite constraints
Hardy Ferentschik (JIRA)
noreply at atlassian.com
Wed Feb 29 15:48:50 EST 2012
[ https://hibernate.onjira.com/browse/HV-550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hardy Ferentschik updated HV-550:
---------------------------------
Pull Requests: https://github.com/hibernate/hibernate-validator/pull/106
> fail-fast doesn't work on composite constraints
> -----------------------------------------------
>
> Key: HV-550
> URL: https://hibernate.onjira.com/browse/HV-550
> Project: Hibernate Validator
> Issue Type: Bug
> Components: engine
> Affects Versions: 4.2.0.Final
> Reporter: Emerson Farrugia
> Assignee: Hardy Ferentschik
> 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