File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/main/java/com/fasterxml/jackson/databind/ser/std Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -337,13 +337,18 @@ private final JsonSerializer<Object> _findCachedSerializer(SerializerProvider pr
337
337
private final JsonSerializer <Object > _findSerializer (SerializerProvider provider ,
338
338
Class <?> type , BeanProperty prop ) throws JsonMappingException
339
339
{
340
- return provider .findTypedValueSerializer (type , true , prop );
340
+ // 13-Mar-2017, tatu: Used to call `findTypeValueSerializer()`, but contextualization
341
+ // not working for that case for some reason
342
+ // return provider.findTypedValueSerializer(type, true, prop);
343
+ return provider .findValueSerializer (type , prop );
341
344
}
342
345
343
346
private final JsonSerializer <Object > _findSerializer (SerializerProvider provider ,
344
347
JavaType type , BeanProperty prop ) throws JsonMappingException
345
348
{
346
- return provider .findTypedValueSerializer (type , true , prop );
349
+ // 13-Mar-2017, tatu: Used to call `findTypeValueSerializer()`, but contextualization
350
+ // not working for that case for some reason
351
+ // return provider.findTypedValueSerializer(type, true, prop);
352
+ return provider .findValueSerializer (type , prop );
347
353
}
348
-
349
354
}
You can’t perform that action at this time.
0 commit comments