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 12:02:32 UTC
[jira] Updated: (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:all-tabpanel ]
Carlos Vara updated BVAL-28:
----------------------------
Attachment: bval-core.patch
bval-jsr303.patch
ConstraintValidatorIdentity.java
> 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
> Attachments: 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.