Updating from Jackson 2.17 to 2.18 causes KotlinReflectionInternalError #879
-
Hey,
The actual class that tries to get a deserializer here uses a property in the constructor which is a "Function1" (aka |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Could possibly add "ignored type" configuration to prevent any otherwise detected properties with specified value. This can be done via annotation
which might work if you can target specific type. Alternatively if you can annotate Constructor in question with |
Beta Was this translation helpful? Give feedback.
Could possibly add "ignored type" configuration to prevent any otherwise detected properties with specified value. This can be done via annotation
@JsonIgnoreType
on class (for 3rd party types, via mix-in annotations usually). But! There's another way too:which might work if you can target specific type.
Alternatively if you can annotate Constructor in question with
@JsonIgnore
, that'd also work.Or, like you suggest,
@JsonIgnore
on specific property.