Sim Yih Tsern
Sim Yih Tsern
@cgpassante how does your non-record setup (i.e. the DTO classes) looks like currently? Bean class with getters & setters?
@vab2048 disabling this should fix your issue: http://fasterxml.github.io/jackson-databind/javadoc/2.13/com/fasterxml/jackson/databind/MapperFeature.html#ALLOW_FINAL_FIELDS_AS_MUTATORS.
I'm also facing this problem, but since I'm already creating the indexes programmatically, I just directly update my code to deal with it - [using the code snippet from the...
@kleino [JsonAnySetter](https://fasterxml.github.io/jackson-annotations/javadoc/2.9/com/fasterxml/jackson/annotation/JsonAnySetter.html) documents two ways: 1. Using field (of type Map or POJO) 2. Using non-static two-argument method (first argument name of property, second value to set) You've been using...
@krzyk maybe should be using `.forValueNulls(Nulls.AS_EMPTY)` instead of `.forContentNulls(Nulls.AS_EMPTY)`? Otherwise, can you please provide an example for JavaBeans (i.e. **not** Records) that actually works with `.forContentNulls`?
> But the exception is strange at any rate: it should not be a problem to create empty List... @cowtowncoder seems like it is complaining that `Bar` does not have...
> This is particularly annoying when using records as we need to do something like: > ``` > public record Input(Boolean field) { > @JsonCreator > public Input {} >}...
Starting from 2.15.0 (thanks to #3724 + #3654), you can also use `@JsonValue` instead of `@JsonCreator(mode = DELEGATING)`, i.e.: ``` record ProviderRecord(@JsonValue Long refId) { } ``` ...since if you...
BUT if you're only using that Record for deserialization & you really prefer not having to annotate, you can also do this starting from 2.15.0 (thanks to #3724): ``` record...
I'm not sure if this is a proper solution or a hack, but here's what I can think of: ``` public class App { public static final String NOT_PROVIDED_MARKER_ID =...