Skip to content

Commit df60be4

Browse files
committed
Merge branch '2.6'
2 parents a55e73c + 730bdad commit df60be4

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

release-notes/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Project: jackson-dataformat-xml
99
#156: Add `XmlMapper.setDefaultUseWrapper()` for convenience.
1010
#169: Fail to deserialize "empty" polymorphic classes
1111

12-
2.6.4 (not yet released)
12+
2.6.4 (07-Dec-2015)
1313

1414
#171: `@JacksonXmlRootElement` malfunction in multi-thread environment
1515
(reported by Leo W)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
package com.fasterxml.jackson.dataformat.xml.failing;
2+
3+
import java.util.List;
4+
5+
import com.fasterxml.jackson.dataformat.xml.*;
6+
import com.fasterxml.jackson.dataformat.xml.annotation.*;
7+
8+
// for [dataformat-xml#177]
9+
public class EmptyList177Test extends XmlTestBase
10+
{
11+
static class Config
12+
{
13+
@JacksonXmlProperty(isAttribute=true)
14+
public String id;
15+
16+
@JacksonXmlElementWrapper(useWrapping=false)
17+
public List<Entry> entry;
18+
}
19+
20+
static class Entry
21+
{
22+
@JacksonXmlProperty(isAttribute=true)
23+
public String id;
24+
}
25+
26+
/*
27+
/**********************************************************
28+
/* Test methods
29+
/**********************************************************
30+
*/
31+
32+
private final XmlMapper MAPPER = new XmlMapper();
33+
34+
public void testEmptyList() throws Exception
35+
{
36+
Config r = MAPPER.readValue(
37+
"<Config id='123'>\n"+
38+
" <entry id='foo'> </entry>\n"+
39+
"</Config>\n",
40+
Config.class);
41+
assertNotNull(r);
42+
}
43+
}

0 commit comments

Comments
 (0)