Skip to content

Commit 031aa5e

Browse files
committed
Merge branch '2.10' into 2.11
2 parents b17e4a8 + daf4dc6 commit 031aa5e

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Some data-binding types overridden as well (ObjectMapper sub-classed as XmlMappe
8787
<dependency>
8888
<groupId>com.fasterxml.woodstox</groupId>
8989
<artifactId>woodstox-core</artifactId>
90-
<version>6.2.1</version>
90+
<version>6.2.3</version>
9191
<exclusions>
9292
<exclusion>
9393
<groupId>javax.xml.stream</groupId>

release-notes/VERSION-2.x

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Project: jackson-dataformat-xml
44
= Releases
55
------------------------------------------------------------------------
66

7+
(unreleased changes)
8+
9+
- Upgrade Woodstox dependency to 6.2.3 (<- 6.2.1)
10+
711
2.11.3 (02-Oct-2020)
812
2.11.2 (02-Aug-2020)
913

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package com.fasterxml.jackson.dataformat.xml.misc;
2+
3+
import java.util.Map;
4+
5+
import com.fasterxml.jackson.databind.ObjectMapper;
6+
7+
import com.fasterxml.jackson.dataformat.xml.XmlTestBase;
8+
9+
// [dataformat-xml#428]: problem with an encoding supported via JDK
10+
public class BadEncodingTest extends XmlTestBase
11+
{
12+
// private static final String xml = "<?xml version='1.0' encoding='WINDOWS-1252'?><x/>";
13+
private static final String xml = "<?xml version='1.0' encoding='WINDOWS-1252'?><x/>";
14+
15+
private final ObjectMapper XML_MAPPER = newMapper();
16+
17+
public void testEncoding() throws Exception {
18+
final byte[] b = xml.getBytes("UTF-8");
19+
assertNotNull(XML_MAPPER.readValue(b, Map.class));
20+
21+
// try (InputStream in = new ByteArrayInputStream(b)) {
22+
// XML_MAPPER.readValue(in, Map.class);
23+
// }
24+
}
25+
}

0 commit comments

Comments
 (0)