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


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.

Reply via email to