[
https://issues.apache.org/jira/browse/CSV-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14028603#comment-14028603
]
Sebb commented on CSV-121:
--------------------------
Two comments:
1) the patch in the pull request includes lots of spurious changes. Even if the
change is agreed, the patch cannot be used as it stands
2) The patch ignores columns with no names; I would have thought a more
suitable fix would be to report IAE for an empty column name. In other words,
the current behaviour is correct, but the IAE message is a bit confusing and
could be changed.
> Exception that the header contains duplicate names when the column names are
> empty.
> -----------------------------------------------------------------------------------
>
> Key: CSV-121
> URL: https://issues.apache.org/jira/browse/CSV-121
> Project: Commons CSV
> Issue Type: Bug
> Reporter: Sebastian Hardt
>
> When having a header like a,,c,d,, an IllegalArgumentException("The header
> contains duplicate names: " +Arrays.toString(header) is thrown because empty
> header names are treated as a header with name. I sended in a pullrequest at
> github: https://github.com/apache/commons-csv/pull/2
--
This message was sent by Atlassian JIRA
(v6.2#6252)