commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CSV-82) CSVRecord inconsistent behaviour when header mapping is not found
Date Mon, 24 Jun 2013 09:16:21 GMT

     [ https://issues.apache.org/jira/browse/CSV-82?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb resolved CSV-82.
---------------------

    Resolution: Fixed

OK, isMapped/isSet should provide sufficient info
                
> CSVRecord inconsistent behaviour when header mapping is not found
> -----------------------------------------------------------------
>
>                 Key: CSV-82
>                 URL: https://issues.apache.org/jira/browse/CSV-82
>             Project: Commons CSV
>          Issue Type: Bug
>            Reporter: Sebb
>
> The CSVRecord#get(String) method has inconsistent behaviour.
> If no header mapping was provided, then it throws IllegalStateException.
> If the header name is not found, null is returned.
> Apart from being inconsistent, it might be useful in the future to be able to return
null as a column value (as distinct from the empty string).
> It should throw IllegalArgumentException for a missing header name, instead of returning
null.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message