Skip to content

Jackson Release 2.12.2

Tatu Saloranta edited this page Mar 4, 2021 · 35 revisions

Patch version of 2.12 was released on March 3, 2021.

Following fixes are included in this patch release.

Changes, core

No changes since 2.12.1

  • #3008: String property deserializes null as "null" for JsonTypeInfo.As.EXTERNAL_PROPERTY
  • #3022: Property ignorals cause BeanDeserializer to forget how to read from arrays (not copying _arrayDelegateDeserializer)
  • #3025: UntypedObjectDeserializer mixes multiple unwrapped collections
  • #3038: Two cases of incorrect error reporting about DeserializationFeature
  • #3045: Bug in polymorphic deserialization with @JsonCreator, @JsonAnySetter, JsonTypeInfo.As.EXTERNAL_PROPERTY
  • #3055: Polymorphic subtype deduction ignores defaultImpl attribute
  • #3056: MismatchedInputException: Cannot deserialize instance of com.fasterxml.jackson.databind.node.ObjectNode out of VALUE_NULL token
  • #3060: Missing override for hasAsKey() in AnnotationIntrospectorPair
  • #3062: Creator lookup fails with InvalidDefinitionException for conflict between single-double/single-Double arg constructo
  • #3068: MapDeserializer forcing JsonMappingException wrapping even if WRAP_EXCEPTIONS set to false

Changes, data formats

CBOR

  • #236: ArrayIndexOutOfBoundsException in CBORParser for invalid UTF-8 String
  • #240: Handle invalid CBOR content like [ 0x84 ] (incomplete array)

Ion

  • #241: Respect WRITE_ENUMS_USING_TO_STRING in EnumAsIonSymbolSerializer
  • #242: Add support for generating IonSexps
  • #244: Add support for deserializing IonTimestamps and IonBlobs
  • #247: Enabling pretty-printing fails Ion serialization
  • #445: XmlMapper/UntypedObjectDeserializer mixes multiple unwrapped collections
  • #451: Xml type resolver fails with NPE when property name is not specified in polymorphic (de)serialization

Changes, datatypes

  • #202: Unable to deserialize YearMonth when running as java9 module, added with @JsonDeserialize annotation
  • #6: Add jakarta classifier version of jackson-datatype-jsr353 to work with new Jakarta-based JSON-P

Changes, other modules

Java 8 / parameter names

  • #206: @JsonKeyis ignored with parameter-names module registered

JAX-RS Providers

  • #132: jaxrs jakarta versions have javax.ws references in OSGi manifest

Changes, JVM Languages

  • #182: Nullable unsigned numbers do not serialize correctly
  • #409: module-info.java missing "exports"
  • #330: try to fix issue where wrong constructor can be chosen
  • #438: fix issues with handling field names that have dashes
  • #495: Fix regression since v2.12.0 where Scala objects (as opposed to case objects) were not serializing correctly.
  • #497: allow DescriptorCache to be replaced with custom implementation
  • #505: Fix regression since v2.12.0 where @JsonCreator annotations on companion classes were not always been handled. Had to reintroduce the dependency on paranamer jar to fix this
Clone this wiki locally