Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 1.8.1
-
Fix Version/s: None
-
Component/s: Serializer
-
Labels:None
-
Number of attachments :
Description
I have Jackson ObjectMapper configured as such:
AnnotationIntrospector primary = new JaxbAnnotationIntrospector();
AnnotationIntrospector secondary = new JacksonAnnotationIntrospector();
// make de/serializer use JAXB annotations first, then jackson ones
AnnotationIntrospector pair = new AnnotationIntrospector.Pair(primary, secondary);
getDeserializationConfig().setAnnotationIntrospector(pair);
getSerializationConfig().setAnnotationIntrospector(pair);
Below honors jaxb @XmlElemtment
@XmlElement(name="gagaxmlelement")
public String getGaga()
So I get "gagaxmlelement":
{"gagaxmlelement":"gagaga"..
I would expect the similar for Collections such as List.
@XmlElement(name="listelement")
public List<String> getMyList()
But I get :
"myList":["list1","list2"]}
Instead of
"listelement":["list1","list2"]
Sounds like a bug, will try to reproduce.