Skip to content

Commit

Permalink
Merge branch '2.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Nov 27, 2019
2 parents 4e5a7bd + caaa746 commit 4efe46e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
@@ -1,9 +1,18 @@
language: java

git:
quiet: true
submodules: false

jdk:
- openjdk8
- openjdk11

# 2019-11-27, tatu: Let's try caching Maven dependencies
cache:
directories:
- $HOME/.m2

# whitelist
branches:
only:
Expand Down
Expand Up @@ -822,12 +822,13 @@ protected String _nextQuotedString() throws IOException {
continue;
}
_owner._reportUnexpectedCsvChar(ch, String.format(
"Expected separator (%s) or end-of-line", _getCharDesc(_quoteChar)));
"Expected column separator character (%s) or end-of-line", _getCharDesc(_separatorChar)));
}
return result;
}

protected final void _handleLF() throws IOException {
protected final void _handleLF() throws IOException
{
// already skipped past first part; but may get \r\n so skip the other char too?
if (_pendingLF == INT_CR) {
if (_inputPtr < _inputEnd || loadMore()) {
Expand Down
Expand Up @@ -165,7 +165,7 @@ public void testRecoveryFromMissingQuote91() throws Exception
value = it.nextValue();
fail("Should fail");
} catch (JsonProcessingException e) {
verifyException(e, "Expected separator");
verifyException(e, "Expected column separator");
}

// and because of this, synchronization skips the rest of 3rd line...
Expand Down Expand Up @@ -210,7 +210,7 @@ public void testRecoveryFromUnclosedQuotes() throws Exception
value = it.nextValue();
fail("Should fail");
} catch (JsonProcessingException e) {
verifyException(e, "Expected separator");
verifyException(e, "Expected column separator");
}

// and this means that since error was encountered on 3rd row, that gets
Expand Down
5 changes: 5 additions & 0 deletions release-notes/VERSION-2.x
Expand Up @@ -14,6 +14,11 @@ Modules:
into `null` values
(contributed by Tyler C-R)

2.10.2 (not yet released)

#166: (csv) Incorrect `JsonParseException` Message for missing separator char
(reported by gimiz@github)

2.10.1 (09-Nov-2019)

#15: Add a `CsvParser.Feature.SKIP_EMPTY_LINES` to allow skipping empty rows
Expand Down

0 comments on commit 4efe46e

Please sign in to comment.