Skip to content

Commit 09db8e1

Browse files
committed
Fix #210
1 parent dadd11e commit 09db8e1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

release-notes/VERSION

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ Project: jackson-dataformat-xml
88

99
No changes since 2.7.
1010

11+
2.7.8 (not yet released)
12+
13+
#210: In `ToXmlGenerator` `WRITE_BIGDECIMAL_AS_PLAIN` is used the wrong way round
14+
(reported by xmluzr@github)
15+
1116
2.7.7 (27-Aug-2016)
1217

1318
#204: FromXMLParser nextTextValue() incorrect for attributes

src/main/java/com/fasterxml/jackson/dataformat/xml/ser/ToXmlGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -981,9 +981,9 @@ public void writeNumber(BigDecimal dec) throws IOException
981981
} else {
982982
_xmlWriter.writeStartElement(_nextName.getNamespaceURI(), _nextName.getLocalPart());
983983
if (usePlain) {
984-
_xmlWriter.writeDecimal(dec);
985-
} else {
986984
_xmlWriter.writeCharacters(dec.toPlainString());
985+
} else {
986+
_xmlWriter.writeDecimal(dec);
987987
}
988988
_xmlWriter.writeEndElement();
989989
}

0 commit comments

Comments
 (0)