@@ -233,7 +233,7 @@ protected final Object _deserializeOther(JsonParser p, DeserializationContext ct
233
233
public Object deserialize (JsonParser p , DeserializationContext ctxt , Object bean ) throws IOException
234
234
{
235
235
// [databind#631]: Assign current value, to be accessible by custom serializers
236
- p .setCurrentValue (bean );
236
+ p .assignCurrentValue (bean );
237
237
if (_injectables != null ) {
238
238
injectValues (ctxt , bean );
239
239
}
@@ -299,7 +299,7 @@ private final Object vanillaDeserialize(JsonParser p,
299
299
if (p .hasTokenId (JsonTokenId .ID_FIELD_NAME )) {
300
300
// [databind#631]: Assign current value, to be accessible by custom serializers
301
301
// [databind#4184]: but only if we have at least one property
302
- p .setCurrentValue (bean );
302
+ p .assignCurrentValue (bean );
303
303
String propName = p .currentName ();
304
304
do {
305
305
p .nextToken ();
@@ -362,7 +362,7 @@ public Object deserializeFromObject(JsonParser p, DeserializationContext ctxt) t
362
362
}
363
363
final Object bean = _valueInstantiator .createUsingDefault (ctxt );
364
364
// [databind#631]: Assign current value, to be accessible by custom deserializers
365
- p .setCurrentValue (bean );
365
+ p .assignCurrentValue (bean );
366
366
if (p .canReadObjectId ()) {
367
367
Object id = p .getObjectId ();
368
368
if (id != null ) {
@@ -451,7 +451,7 @@ protected Object _deserializeUsingPropertyBased(final JsonParser p, final Deseri
451
451
_creatorReturnedNullException ());
452
452
}
453
453
// [databind#631]: Assign current value, to be accessible by custom serializers
454
- p .setCurrentValue (bean );
454
+ p .assignCurrentValue (bean );
455
455
456
456
// polymorphic?
457
457
if (bean .getClass () != _beanType .getRawClass ()) {
@@ -713,7 +713,7 @@ protected Object deserializeWithUnwrapped(JsonParser p, DeserializationContext c
713
713
final Object bean = _valueInstantiator .createUsingDefault (ctxt );
714
714
715
715
// [databind#631]: Assign current value, to be accessible by custom serializers
716
- p .setCurrentValue (bean );
716
+ p .assignCurrentValue (bean );
717
717
718
718
if (_injectables != null ) {
719
719
injectValues (ctxt , bean );
@@ -860,7 +860,7 @@ protected Object deserializeUsingPropertyBasedWithUnwrapped(JsonParser p, Deseri
860
860
bean = wrapInstantiationProblem (e , ctxt );
861
861
}
862
862
// [databind#631]: Assign current value, to be accessible by custom serializers
863
- p .setCurrentValue (bean );
863
+ p .assignCurrentValue (bean );
864
864
// if so, need to copy all remaining tokens into buffer
865
865
while (t == JsonToken .FIELD_NAME ) {
866
866
// NOTE: do NOT skip name as it needs to be copied; `copyCurrentStructure` does that
0 commit comments