commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andras Sereny (JIRA)" <>
Subject [jira] [Created] (CSV-143) CSVPrinter ill-suited in multithreaded environment
Date Tue, 11 Nov 2014 10:17:33 GMT
Andras Sereny created CSV-143:

             Summary: CSVPrinter ill-suited in multithreaded environment
                 Key: CSV-143
             Project: Commons CSV
          Issue Type: Improvement
    Affects Versions: 1.0
            Reporter: Andras Sereny

CSVPrinter doesn't support multiple threads writing to the same appendable. The class itself
is not thread safe and, what's worse, it also invalidates any thread-safety guarantees provided
by the underlying appendable, as in one CSVPrinter.print method there are multiple calls to

OpenCSV does better here: in CSVWriter.writeNext there is one single call to PrintWriter.writer,
thus it conveniently propagates PrintWriter thread-safety.

This message was sent by Atlassian JIRA

View raw message