From 4640338e73f53e0742638e735db199f642dd8792 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Thu, 6 Jan 2022 15:21:09 +0100 Subject: [PATCH] jackson: don't fail serializing empty beans (#31033) Notably, case objects. It's not entirely clear to me why this started failing on Scala 3, `AccountExampleSpec` picks `JacksonCborSerializer` both for Scala 2 and Scala 3, but only on 3 seems to require this option. --- akka-serialization-jackson/src/main/resources/reference.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/akka-serialization-jackson/src/main/resources/reference.conf b/akka-serialization-jackson/src/main/resources/reference.conf index 4924f6ed4b..3a51ddd399 100644 --- a/akka-serialization-jackson/src/main/resources/reference.conf +++ b/akka-serialization-jackson/src/main/resources/reference.conf @@ -47,6 +47,7 @@ akka.serialization.jackson { # but WRITE_DATES_AS_TIMESTAMPS=on has better performance. WRITE_DATES_AS_TIMESTAMPS = off WRITE_DURATIONS_AS_TIMESTAMPS = off + FAIL_ON_EMPTY_BEANS = off } # Configuration of the ObjectMapper deserialization features.