This is an exported version of the JIRA issue tracker. Please use the Google Code site to open new tickets or report updates to these existing tickets. Feel free to contact the mailing list with any questions.

[GJC-24] Wrong number of fields when last character is fieldDelimiter
Created: Mon, 2 Aug 2004 12:00:23 -0700 (PDT)  Updated: Wed, 22 Sep 2004 20:00:19 -0700 (PDT)

Status:Open
Project:Genjava
Component/s:gj-csv
Affects Version/s:csv-1.0
Fix Version/s:csv-1.1

Type:BugPriority: Major
Reporter:Daniel SerodioAssignee:Henri Yandell
Resolution:Unresolved 
Environment:Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)


 Description   
CsvReader readerA = new CsvReader(new StringReader("1;2;;")
CsvReader readerB = new CsvReader(new StringReader("1;2;;4")

assertTrue(readerA.readLine().length == readerB.readLine().length)

// Shouldn't both readers return the same number, ie 4 in this example?
Comment by bayard [ Wed, 22 Sep 2004 19:45:27 -0700 (PDT) ]
Seems that it should.

Will either fix that in a next release, or I might be merging this code in with someone elses at Jakarta Commons.