package com.fasterxml.jackson.dataformat.xml.failing;

import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.*;

// for [dataformat-xml#124]
public class EmptyListDeser124Test extends XmlTestBase
{
    public static class TestList {
        @JsonProperty("list")
        public List<Object> list;
    }

    // [dataformat-xml#124]
    public  void test124() throws Exception {
        final XmlMapper xmlMapper = new XmlMapper();
        TestList originalObject = new TestList();
        originalObject.list = new ArrayList<Object>();
        String xml = xmlMapper.writeValueAsString(originalObject);
//System.err.println(xml); // print <TestList><list/>></TestList>

        TestList result = xmlMapper.readValue(xml, TestList.class);

        assertNotNull(result.list);
        assertEquals(0, result.list.size());
    }
}

@@ -154,16 +154,115 @@
 operty;%0A
+import com.fasterxml.jackson.annotation.JsonSetter;%0Aimport com.fasterxml.jackson.annotation.Nulls;%0A
 import c
@@ -300,16 +300,16 @@
 .xml.*;%0A
-
 %0A// for 
@@ -606,25 +606,326 @@
 r = 
-new XmlMapper(
+XmlMapper.builder()%0A                .build();%0A%0A        // 14-Jan-2020, tatu: This is actual working override to resolve the issue...%0A        //    Not sure if this can be otherwise resolved.%0A%0A//        xmlMapper.configOverride(List.class)%0A//            .setSetterInfo(JsonSetter.Value.forValueNulls(Nulls.AS_EMPTY)
 );%0A
+%0A
     
@@ -1092,16 +1092,16 @@
 bject);%0A
-
 //System
@@ -1127,16 +1127,17 @@
 // print
+s
  %3CTestLi

Add a note on work-around for failing test #124