To be clear on this, following code is an example.
Note that each bean has a corresponding custom validation class begins with V.
Then whenever the validation is invoked, there is an error message shown on the console. I think this is because Spring Framework cannot correctly pass the "bbb.ccc" because bbb is a Collection type defined in A.class.
String oldPath = errors.getNestedPath();
errors.setNestedPath(oldPath + "bbb"); // is this correct?
// run the validation
// reset the old path
Also note that if the bbb is not a collecton type, everything works fine.
Need helps on this touch question.