aherbert commented on issue #47: CSV-247: CSVParser to check an empty header before checking duplicates. URL: https://github.com/apache/commons-csv/pull/47#issuecomment-514304253 Hi @mykolapolonskyi . I do not understand your bug in your demo code. Are you testing that if the format has an enumeration of header names and you parse an input that does not match the header it should throw an exception? IIUC the withHeader(Enum) method is used to define an array of headers for the format. The parse method will then read records and skip trying to read a header because it has one. I don't think your issue is related to this PR as this addresses code to parse the header from the input. With your example you are skipping this code as you provide a header. Please ask on the [Commons CSV user mailing lists](https://commons.apache.org/proper/commons-csv/mail-lists.html) about this. It may be an incorrect use of the functionality or it may be a bug. If so it should be addressed in a separate issue.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
