Skip to content

Commit 01fd701

Browse files
committed
Mark #303 as fixed in 2.16.1; move now passing test to guard against regression
1 parent 8322fcc commit 01fd701

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
package com.fasterxml.jackson.dataformat.ion.failing;
1+
package com.fasterxml.jackson.dataformat.ion;
22

33
import java.net.URL;
44

55
import org.junit.Test;
66

7-
import com.fasterxml.jackson.core.JsonProcessingException;
8-
import com.fasterxml.jackson.dataformat.ion.IonObjectMapper;
7+
import com.fasterxml.jackson.core.exc.StreamReadException;
98

109
import static org.junit.Assert.*;
1110

12-
public class UncaughtException303Test
11+
public class DatabindRead303Test
1312
{
1413
private final IonObjectMapper MAPPER = IonObjectMapper.builder().build();
1514

@@ -21,9 +20,10 @@ public void testUncaughtException303() throws Exception
2120
try {
2221
MAPPER.readTree(poc);
2322
fail("Should not pass with invalid content");
24-
} catch (JsonProcessingException e) {
25-
// !!! TODO: change to match what we actually expect
26-
verifyException(e, "MATCH MESSAGE");
23+
} catch (StreamReadException e) {
24+
// 19-Dec-2023, tatu: Looks like message depends on ion-java version,
25+
// cannot easily verify
26+
// verifyException(e, "Value exceeds the length of its parent container");
2727
}
2828
}
2929

release-notes/VERSION-2.x

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ Active maintainers:
1414
=== Releases ===
1515
------------------------------------------------------------------------
1616

17+
2.16.1 (not yet released)
18+
19+
#303: `NullPointerException` in `IonParser.nextToken()`
20+
(reported by @ZanderHuang)
21+
1722
2.16.0 (15-Nov-2023)
1823

1924
#400: (avro) Rewrite Avro buffer recycling (`ApacheCodecRecycler.java`) to

0 commit comments

Comments
 (0)