Skip to content

Commit

Permalink
Mark #303 as fixed in 2.16.1; move now passing test to guard against …
Browse files Browse the repository at this point in the history
…regression
  • Loading branch information
cowtowncoder committed Dec 20, 2023
1 parent 8322fcc commit 01fd701
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package com.fasterxml.jackson.dataformat.ion.failing;
package com.fasterxml.jackson.dataformat.ion;

import java.net.URL;

import org.junit.Test;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.dataformat.ion.IonObjectMapper;
import com.fasterxml.jackson.core.exc.StreamReadException;

import static org.junit.Assert.*;

public class UncaughtException303Test
public class DatabindRead303Test
{
private final IonObjectMapper MAPPER = IonObjectMapper.builder().build();

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

Expand Down
5 changes: 5 additions & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ Active maintainers:
=== Releases ===
------------------------------------------------------------------------

2.16.1 (not yet released)

#303: `NullPointerException` in `IonParser.nextToken()`
(reported by @ZanderHuang)

2.16.0 (15-Nov-2023)

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

0 comments on commit 01fd701

Please sign in to comment.