Skip to content

Commit e37053e

Browse files
committed
Merge branch '2.10' into 2.11
2 parents d0ca6c0 + f5209c3 commit e37053e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.fasterxml.jackson.failing;
2+
3+
import com.fasterxml.jackson.core.*;
4+
import com.fasterxml.jackson.core.json.JsonReadFeature;
5+
6+
public class TrailingCommas616Test extends BaseTest
7+
{
8+
public void testRootLevel616() throws Exception
9+
{
10+
final JsonFactory f = JsonFactory.builder()
11+
.enable(JsonReadFeature.ALLOW_MISSING_VALUES)
12+
.build();
13+
_testRootLevel616(f, MODE_INPUT_STREAM);
14+
_testRootLevel616(f, MODE_INPUT_STREAM_THROTTLED);
15+
_testRootLevel616(f, MODE_READER);
16+
}
17+
18+
private void _testRootLevel616(JsonFactory f, int mode) throws Exception
19+
{
20+
JsonParser p = createParser(f, mode, ",");
21+
assertToken(JsonToken.VALUE_NULL, p.nextToken());
22+
assertToken(JsonToken.VALUE_NULL, p.nextToken());
23+
assertNull(p.nextToken());
24+
p.close();
25+
}
26+
}

0 commit comments

Comments
 (0)