https://kotlinlang.org logo
Title
j

jw

08/23/2022, 11:45 PM
When is the legacy JVM backend slated to be removed?
r

ralf

08/24/2022, 2:49 AM
This ticket says 1.8, but I doubt it https://youtrack.jetbrains.com/issue/KT-48532/Remove-old-JVM-backend Reason is that the stub generating task still uses the old backend unconditionally and only will use the IR backend with 1.8 by default: https://youtrack.jetbrains.com/issue/KT-53135/Enable-JVM-IR-for-KAPT-stub-generation-by-default So maybe 1.9 or later?
y

Youssef Shoaib [MOD]

08/24/2022, 5:27 AM
Also apparently evaluate expression in the Idea debugger uses the old JVM backend under the hood, so 1.8 definitely doesn't sound realistic from what I can tell https://kotlinlang.slack.com/archives/C7L3JB43G/p1660906346446999?thread_ts=1660905777.813309&cid=C7L3JB43G
u

udalov

09/02/2022, 8:30 PM
I think we'll remove the
-Xuse-old-backend
compiler flag (& Gradle option
useOldBackend
) in 1.8, but the code will remain, precisely for the usages mentioned in this thread: kapt stub generation & evaluate expression.