CsvDozerBeanReader can read into Lists of Strings using indexed mapping, but when you combine it with a cell processor (that creates a bean or Integer/Date etc) and use indexed mapping to read into a List it doesn't work.
This was discovered while trying to answer this StackOverflow question, in which a Person has a List of PersonAttributes. A custom cell processor created a PersonAttribute, and indexed mapping was used (e.g. attribs[0]) to map the attribute to the List of attributes in the Person. Dozer didn't map it correctly and each element in the attribute List was actually an empty List (not a PersonAttribute!!).
Curiously, when using no custom cell processor and using deep+indexed mapping (attribs[0].value) Dozer was able to map everything correctly.
It appears that Dozer needs a hint when doing this kind of mapping, so I've updated
configureBeanMapping()to allow hint types to be specified.[r283]
Related
Commit: [r283]
Diff: