FasterXML / jackson-module-kotlin

Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.
Apache License 2.0
1.11k stars 173 forks source link

jackson-module-kotlin 3.0.0-SNAPSHOT tests against Kotlin 2.0 fail #813

Open cowtowncoder opened 2 weeks ago

cowtowncoder commented 2 weeks ago

Search before asking

Describe the bug

After latest fix, version 3.0.0-SNAPSHOT of Kotlin module passes tests for all JDKs and Kotlin version -- except for Kotlin 2.0. See f.ex:

https://github.com/FasterXML/jackson-module-kotlin/actions/runs/9635973986/job/26573371169

Errors look like:

 [INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  16.249 s
[INFO] Finished at: 2024-06-23T19:43:30Z
[INFO] ------------------------------------------------------------------------
Error:  Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:2.0.0:compile (compile) on project jackson-module-kotlin: Compilation failure: Compilation failure: 
Error:  /home/runner/work/jackson-module-kotlin/jackson-module-kotlin/src/main/kotlin/tools/jackson/module/kotlin/KotlinModule.kt:[45,63] Unresolved reference 'DISABLED'.
Error:  /home/runner/work/jackson-module-kotlin/jackson-module-kotlin/src/main/kotlin/tools/jackson/module/kotlin/KotlinModule.kt:[59,87] Unresolved reference 'CANONICALIZE'.
Error:  /home/runner/work/jackson-module-kotlin/jackson-module-kotlin/src/main/kotlin/tools/jackson/module/kotlin/KotlinModule.kt:[79,69] Unresolved reference 'CANONICALIZE'.
Error:  /home/runner/work/jackson-module-kotlin/jackson-module-kotlin/src/main/kotlin/tools/jackson/module/kotlin/KotlinModule.kt:[80,38] Unresolved reference 'DISABLED'.

To Reproduce

CI test run so right Kotlin-core and JDK versions used

Expected behavior

All tests pass

Versions

Kotlin: 2.0 Jackson-module-kotlin: 3.0.0-SNAPSHOT Jackson-databind: 3.0.0-SNAPSHOT

Additional context

No response

JooHyukKim commented 2 weeks ago

815 Might fix the issue