Skip to content

Commit 1a0ba00

Browse files
committed
Merge branch '2.11' into 2.12
2 parents 20d927f + efb15ea commit 1a0ba00

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,10 @@ public Object deserialize(JsonParser p, DeserializationContext ctxt) throws IOEx
177177
JsonToken curr = p.currentToken();
178178

179179
// Usually should just get string value:
180-
if (curr == JsonToken.VALUE_STRING || curr == JsonToken.FIELD_NAME) {
180+
// 04-Sep-2020, tatu: for 2.11.3 / 2.12.0, removed "FIELD_NAME" as allowed;
181+
// did not work and gave odd error message.
182+
if (curr == JsonToken.VALUE_STRING) {
181183
text = p.getText();
182-
183184
// But let's consider int acceptable as well (if within ordinal range)
184185
} else if (curr == JsonToken.VALUE_NUMBER_INT) {
185186
// ... unless told not to do that

0 commit comments

Comments
 (0)