Skip to content

Commit 280770b

Browse files
authored
Backport #5891 fix into 2.21 (#5893)
1 parent b77792a commit 280770b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

release-notes/VERSION-2.x

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ Project: jackson-databind
1212
(fix by @pjfanning)
1313
#5870: `EnumMap` and `EnumSet` properties ignore `@JsonDeserialize(contentConverter)`
1414
(fixed by Lee Jiwon)
15+
#5891: `EnumMapDeserializer._deserializeUsingProperties()` corrupts parser
16+
state after skipping unknown enum keys
17+
(fixed by Lee Jiwon)
1518

1619
2.21.2 (20-Mar-2026)
1720

src/main/java/com/fasterxml/jackson/databind/deser/std/EnumMapDeserializer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@ public EnumMap<?,?> _deserializeUsingProperties(JsonParser p, DeserializationCon
399399
}
400400
// 24-Mar-2012, tatu: Null won't work as a key anyway, so let's
401401
// just skip the entry then. But we must skip the value as well, if so.
402-
p.nextToken();
403402
p.skipChildren();
404403
continue;
405404
}

0 commit comments

Comments
 (0)