Skip to content

Commit 9e14576

Browse files
committed
Fix test regression wrt [core#1438]
1 parent 98abb93 commit 9e14576

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/java/com/fasterxml/jackson/databind/convert/CoerceToBooleanTest.java

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

1313
import com.fasterxml.jackson.core.JsonParser;
1414
import com.fasterxml.jackson.core.JsonToken;
15+
import com.fasterxml.jackson.core.StreamReadFeature;
1516
import com.fasterxml.jackson.databind.*;
1617
import com.fasterxml.jackson.databind.cfg.CoercionAction;
1718
import com.fasterxml.jackson.databind.cfg.CoercionInputShape;
@@ -56,6 +57,8 @@ public BooleanWrapper(@JsonProperty("ctor") Boolean foo) {
5657

5758
private final ObjectMapper LEGACY_NONCOERCING_MAPPER = jsonMapperBuilder()
5859
.disable(MapperFeature.ALLOW_COERCION_OF_SCALARS)
60+
// 30-May-2025, tatu: Needed after [core#1438] (clear current token on close)
61+
.disable(StreamReadFeature.CLEAR_CURRENT_TOKEN_ON_CLOSE)
5962
.build();
6063

6164
private final ObjectMapper MAPPER_INT_TO_EMPTY = jsonMapperBuilder()

0 commit comments

Comments
 (0)