According to feature request 2344526, case insensitive mapping strategy was added as of v2.0. There are some case insensitive pieces of code; however, adding a lower-case mapping and trying to map a mixed or upper-case heading does not produce valid results. The getColumnName method inside HeaderColumnNameTranslateMappingStrategy receives an index of the column to map. This index is used to find the appropriate header on line 24:
The array contains a mixed or upper-case value and the columnMapping contains lower-case values. Hence, the line returns a null as it tries to find a mixed or upper-case value in a map filled with lower-case keys. An example, if the columnMapping contains "given name" as key at index 2 and the input CSV contains "Given Name", no match is found.
Log in to post a comment.