jackson-module-kotlin icon indicating copy to clipboard operation
jackson-module-kotlin copied to clipboard

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

Open cowtowncoder opened this issue 1 year ago • 1 comments

Search before asking

  • [X] I searched in the issues and found nothing similar.
  • [X] I searched in the issues of databind and other modules used and found nothing similar.
  • [X] I have confirmed that the problem only occurs when using Kotlin.

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

cowtowncoder avatar Jun 23 '24 20:06 cowtowncoder

#815 Might fix the issue

JooHyukKim avatar Jun 25 '24 06:06 JooHyukKim

Sorry for the late reply. I was not able to catch up, may I close this issue?

k163377 avatar Nov 16 '24 09:11 k163377

If u think so, yes👍🏼

JooHyukKim avatar Nov 16 '24 09:11 JooHyukKim