commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Smith (JIRA)" <j...@apache.org>
Subject [jira] Created: (SANDBOX-283) CSVParser.nextValue() does not handle a CSV file with a single value correctly
Date Wed, 11 Feb 2009 02:27:00 GMT
CSVParser.nextValue() does not handle a CSV file with a single value correctly
------------------------------------------------------------------------------

                 Key: SANDBOX-283
                 URL: https://issues.apache.org/jira/browse/SANDBOX-283
             Project: Commons Sandbox
          Issue Type: Bug
          Components: CSV
    Affects Versions: Nightly Builds
            Reporter: Bob Smith
            Priority: Minor
         Attachments: CSVParser_SingleValueFix.patch

For a CSV file with a single value in it (like if your entire file is just "test"), CSVParser.nextValue()
returns null the first time it is called instead of the value.

CSVParser.getLine() and CSVParser.getAllValues() do not value this problem.  The problem seems
to be that getLine() has special handling for the "TT_EOF" tokens that nextValue() does not
have.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message