Skip to content

Commit 380daa8

Browse files
committed
Fix #882
1 parent f0561a8 commit 380daa8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/fasterxml/jackson/databind/deser/BuilderBasedDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ protected final Object _deserialize(JsonParser p,
506506
return _handleUnexpectedWithin(p, ctxt, builder);
507507
}
508508
p.nextToken();
509-
handleUnknownVanilla(p, ctxt, handledType(), p.currentName());
509+
handleUnknownVanilla(p, ctxt, builder, p.currentName());
510510
}
511511
}
512512

src/test/java/com/fasterxml/jackson/databind/deser/builder/BuilderSimpleTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ static class ValueBuilder822
217217
public int x;
218218
private Map<String,Object> stuff = new HashMap<String,Object>();
219219

220-
public ValueBuilder822 withX(int x0) {
220+
@JsonCreator
221+
public ValueBuilder822(@JsonProperty("x") int x0) {
221222
this.x = x0;
222-
return this;
223223
}
224224

225225
@JsonAnySetter

0 commit comments

Comments
 (0)