Skip to content

Commit 7f52d47

Browse files
committed
Merge branch '2.x' into 3.x
2 parents d0459be + 9e14576 commit 7f52d47

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/java/tools/jackson/databind/convert/CoerceToBooleanTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
import tools.jackson.core.JsonParser;
1414
import tools.jackson.core.JsonToken;
15+
import tools.jackson.core.StreamReadFeature;
16+
1517
import tools.jackson.databind.*;
1618
import tools.jackson.databind.cfg.CoercionAction;
1719
import tools.jackson.databind.cfg.CoercionInputShape;
@@ -58,6 +60,8 @@ public BooleanWrapper(@JsonProperty("ctor") Boolean foo) {
5860

5961
private final ObjectMapper LEGACY_NONCOERCING_MAPPER = jsonMapperBuilder()
6062
.disable(MapperFeature.ALLOW_COERCION_OF_SCALARS)
63+
// 30-May-2025, tatu: Needed after [core#1438] (clear current token on close)
64+
.disable(StreamReadFeature.CLEAR_CURRENT_TOKEN_ON_CLOSE)
6165
.build();
6266

6367
private final ObjectMapper MAPPER_INT_TO_EMPTY = jsonMapperBuilder()

0 commit comments

Comments
 (0)