FasterXML / jackson-dataformat-xml

Extension for Jackson JSON processor that adds support for serializing POJOs as XML (and deserializing from XML) as an alternative to JSON
Apache License 2.0
567 stars 221 forks source link

Empty String ("") parsed as 0 for `int` even if `DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES` enabled #474

Closed cowtowncoder closed 3 years ago

cowtowncoder commented 3 years ago

(note: offshoot of #473)

Looks like coercion for XML empty String value into null does not trigger failure for primitive types, even if DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES is enabled, in 2.12. It should.

But given timing, this probably needs to be changed only in 2.13.0.