Skip to content

Commit 3fcb705

Browse files
committed
Fix #732: change XmlReadFeature.AUTO_DETECT_XSI_TYPE default to true
1 parent 093ef5e commit 3fcb705

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

release-notes/VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ Version: 3.x (for earlier see VERSION-2.x)
1717
#727: Change `XmlWriteFeature.WRITE_NULLS_AS_XSI_NIL` default to `true`
1818
#728: Change `XmlWriteFeature.AUTO_DETECT_XSI_TYPE` default to `true`
1919
#729: Change `XmlWriteFeature.WRITE_XML_SCHEMA_CONFORMING_FLOATS` default to `true`
20+
#732: Change `XmlReadFeature.AUTO_DETECT_XSI_TYPE` default to `true`
2021
- Add `XmlMapper.shared()`
2122
- Minimum Java baseline: Java 17

src/main/java/tools/jackson/dataformat/xml/XmlReadFeature.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ public enum XmlReadFeature implements FormatFeature
2222
* usually used for Polymorphic handling where it is difficult
2323
* to specify proper XML Namespace for type identifier.
2424
*<p>
25-
* Default setting is {@code false}.
25+
* Default setting is {@code true} (was {@code false} in Jackson 2.x).
2626
*/
27-
AUTO_DETECT_XSI_TYPE(false),
27+
AUTO_DETECT_XSI_TYPE(true),
2828

2929
/**
3030
* Feature that indicates whether empty XML elements

0 commit comments

Comments
 (0)