Closed
Description
Markus Heiden opened SPR-13318 and commented
All our JSON entities implement an interface which is not annotated with Jackson annotations. Since using Jackson 2.6.0 the code snippet below of AbstractJackson2HttpMessageConverter#writeInternal(Object, Type, HttpOutputMessage) causes javaType always to be detected as the not annotated interface instead of the concrete JSON entity class. And Jackson later on complains about not finding any serializer for it.
if (jackson26Available && type != null && value != null && TypeUtils.isAssignable(type, value.getClass())) {
javaType = getJavaType(type, null);
}
Affects: 4.2 GA
Issue Links:
- DATAREST-664 GET on single resource does not show link for association collection resource
- Spring response handler returning abstract object drops unique fields from concrete class [SPR-13429] #18008 Spring response handler returning abstract object drops unique fields from concrete class
- Full support for Jackson 2.7 [SPR-13483] #18062 Full support for Jackson 2.7
- Jackson 2.6: message converter should use type also for Iterable [SPR-13523] #18100 Jackson 2.6: message converter should use type also for Iterable
- Make @ResponseBody method return type available to message converters [SPR-12811] #17408 Make
@ResponseBody
method return type available to message converters - Improve Jackson 2.7 compatibility [SPR-13853] #18426 Improve Jackson 2.7 compatibility
1 votes, 10 watchers