Skip to content

Commit 6069d35

Browse files
authored
Fix "missing" custom ClassIntrospector after ObjectMapper::copy : Add copy() to KotlinClassIntrospector
There is a problem with objectMapper.copy() method with kogera module. Copy method of ObjectMapper does not call setupModule method in SimpleModule in copy. It calls ClassIntrospector.copy() method instead.
1 parent cbc54d7 commit 6069d35

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/kotlin/io/github/projectmapk/jackson/module/kogera/KotlinClassIntrospector.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ internal class KotlinBeanDescription(coll: POJOPropertiesCollector) : BasicBeanD
3737
internal object KotlinClassIntrospector : BasicClassIntrospector() {
3838
private fun readResolve(): Any = KotlinClassIntrospector
3939

40+
override fun copy(): KotlinClassIntrospector = this
41+
4042
override fun forSerialization(
4143
config: SerializationConfig,
4244
type: JavaType,

0 commit comments

Comments
 (0)