You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bval.apache.org by "Carlos Vara (JIRA)" <ji...@apache.org> on 2010/04/28 15:03:32 UTC

[jira] Commented: (BVAL-28) Property path for nodes inside iterables that do not implement List should not contain the index

    [ https://issues.apache.org/jira/browse/BVAL-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12861794#action_12861794 ] 

Carlos Vara commented on BVAL-28:
---------------------------------

Nice catch Roman, it definitely is a better place for it.

Thanks for reviewing the changes and merging them so promptly!


> Property path for nodes inside iterables that do not implement List should not contain the index
> ------------------------------------------------------------------------------------------------
>
>                 Key: BVAL-28
>                 URL: https://issues.apache.org/jira/browse/BVAL-28
>             Project: BeanValidation
>          Issue Type: Bug
>          Components: jsr303
>    Affects Versions: 0.1-incubating
>            Reporter: Carlos Vara
>            Assignee: Roman Stumm
>             Fix For: 0.1-incubating
>
>         Attachments: bval-core.patch, bval-jsr303.patch, ConstraintValidatorIdentity.java, Continent.java
>
>
> Example: if bean Person has a set of addresses, when detecting a violation in one of the addresses it should be reported as:
> []address.*
> instead of:
> [1]address.*
> as the iterating order is not fixed.
> Apart from the modifications in NodeImpl and validateContext, fix involves modifying the method collectValidated(.., ConstraintValidator), as current check relied only on the uniqueness of the path, and the Path/Node interfaces make it cumbersome to store an internal index to keep that uniqueness.
> With the patch applied, one more test passes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.