Piotr Krzemiński
06/27/2025, 7:42 AMvladimirsitnikov
06/27/2025, 12:40 PMPiotr Krzemiński
06/27/2025, 12:45 PMWhy breaking clients?for clarity, are you asking why this change breaks the clients, or why I decided to introduce the change now?
vladimirsitnikov
06/27/2025, 12:45 PMPiotr Krzemiński
06/27/2025, 12:47 PM.github/workflows/test-script-consuming-jit-bindings-older-kotlin.main.kts:34:9: error: class 'io.github.typesafegithub.workflows.actions.actions.Checkout' was compiled with an incompatible version of Kotlin. The actual metadata version is 2.2.0, but the compiler version 2.0.0 can read versions up to 2.1.0.
Piotr Krzemiński
06/27/2025, 12:48 PMvladimirsitnikov
06/27/2025, 12:48 PMPiotr Krzemiński
06/27/2025, 12:50 PMPiotr Krzemiński
06/27/2025, 12:50 PMvladimirsitnikov
06/27/2025, 12:51 PMPiotr Krzemiński
06/27/2025, 12:53 PMPiotr Krzemiński
06/27/2025, 12:53 PMvladimirsitnikov
06/27/2025, 12:56 PMPiotr Krzemiński
06/27/2025, 12:57 PMPiotr Krzemiński
06/27/2025, 1:13 PMvladimirsitnikov
06/27/2025, 1:15 PM2.0
requirement might be too strict.
By the way, which JVM release do you target? (== what is your -Xjdk-release
option?)Piotr Krzemiński
06/27/2025, 1:18 PMHavingdo you mean we should go with even lower version? I'm not sure if it's possiblerequirement might be too strict.2.0
By the way, which JVM release do you target? (== what is yourI think it's 17. For the library, it's 11. I haven't really thought about the bindings' JDK release version, and I shouldoption?)-Xjdk-release
vladimirsitnikov
06/27/2025, 1:20 PMvladimirsitnikov
06/27/2025, 1:22 PMjvmTarget
is not enough, and you need to add -Xjdk-release
so the compiler uses the proper APIs.
At the same time, I see you use toolchain=11 which is not that good (you’d better use the latest toolchain like Java 21 for the build, and use JavaCompile.options.release=11
to target Java 11. Then you get the latest bugfixes for javac
(==you avoid compiler bugs), and you still produce code that is perfectly executable with Java 11.Piotr Krzemiński
06/27/2025, 1:22 PMPiotr Krzemiński
06/27/2025, 1:23 PMPiotr Krzemiński
06/27/2025, 1:29 PMPiotr Krzemiński
06/27/2025, 6:10 PMPiotr Krzemiński
06/27/2025, 6:10 PM